diff options
-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 $? |