X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-parse-remote.sh;h=a296719861ec3b7aab5e530e67dc99b58267a56a;hb=e01de1c9122c3cba118da19fe0ba0ce913fa7285;hp=695a4094bb4230341618bd6f16d0bea9bff2e826;hpb=39a76bdd7de18b2bb2651dcb8136563df41e84f7;p=git.git diff --git a/git-parse-remote.sh b/git-parse-remote.sh index 695a4094b..a29671986 100755 --- a/git-parse-remote.sh +++ b/git-parse-remote.sh @@ -2,7 +2,7 @@ # git-ls-remote could be called from outside a git managed repository; # this would fail in that case and would issue an error message. -GIT_DIR=$(git rev-parse --git-dir 2>/dev/null) || :; +GIT_DIR=$(git rev-parse -q --git-dir) || :; get_data_source () { case "$1" in