summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-11-15 09:53:59 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2017-11-15 09:53:59 +0100
commit9825856b175fe02e5953442bb876a9cc023ed632 (patch)
treeb1d804fdc56c4c41f6450dd405c2b81be470ef19
parent730baaa4fed5a013ed0744137389cfeaa643886e (diff)
downloadnixos-9825856b175fe02e5953442bb876a9cc023ed632.tar
nixos-9825856b175fe02e5953442bb876a9cc023ed632.tar.gz
nixos-9825856b175fe02e5953442bb876a9cc023ed632.tar.bz2
nixos-9825856b175fe02e5953442bb876a9cc023ed632.tar.xz
nixos-9825856b175fe02e5953442bb876a9cc023ed632.zip
Surpress spurious output
-rw-r--r--ymir.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/ymir.nix b/ymir.nix
index 5d77ecef..d7796260 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -896,7 +896,7 @@ in rec {
896 hook=${pkgs.writeScript "git-sync.sh" '' 896 hook=${pkgs.writeScript "git-sync.sh" ''
897 #!${pkgs.zsh}/bin/zsh 897 #!${pkgs.zsh}/bin/zsh
898 898
899 git -C ''${2:h} rev-parse --is-inside-work-tree || exit 0 899 git -C ''${2:h} rev-parse --is-inside-work-tree &>/dev/null || exit 0
900 900
901 repository=$(git -C ''${2:h} rev-parse --show-toplevel) 901 repository=$(git -C ''${2:h} rev-parse --show-toplevel)
902 [[ $? -ne 0 ]] && exit $? 902 [[ $? -ne 0 ]] && exit $?