diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-11-15 09:53:59 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-11-15 09:53:59 +0100 |
commit | 9825856b175fe02e5953442bb876a9cc023ed632 (patch) | |
tree | b1d804fdc56c4c41f6450dd405c2b81be470ef19 | |
parent | 730baaa4fed5a013ed0744137389cfeaa643886e (diff) | |
download | nixos-9825856b175fe02e5953442bb876a9cc023ed632.tar nixos-9825856b175fe02e5953442bb876a9cc023ed632.tar.gz nixos-9825856b175fe02e5953442bb876a9cc023ed632.tar.bz2 nixos-9825856b175fe02e5953442bb876a9cc023ed632.tar.xz nixos-9825856b175fe02e5953442bb876a9cc023ed632.zip |
Surpress spurious output
-rw-r--r-- | ymir.nix | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 $? |