From 4985017bcd6635004937c9805858d09284dd38cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Sat, 25 Jan 2020 18:26:25 +0100 Subject: [PATCH] fix(todo.sh): remove git error message --- configs/todo-txt.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/todo-txt.nix b/configs/todo-txt.nix index b98adde..d013640 100644 --- a/configs/todo-txt.nix +++ b/configs/todo-txt.nix @@ -1,7 +1,7 @@ { pkgs, ... }: let get-todo-dir = pkgs.writers.writeDash "git-toplevel-todo" '' - if GIT_TOPLEVEL=$(${pkgs.git}/bin/git rev-parse --show-toplevel); then + if GIT_TOPLEVEL=$(${pkgs.git}/bin/git rev-parse --show-toplevel 2>/dev/null); then echo "$GIT_TOPLEVEL/.todo" else echo "$HOME/cloud/Dropbox/todo"