We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a1a642 commit 886f7ebCopy full SHA for 886f7eb
1 file changed
git-currentbranch
@@ -27,7 +27,5 @@ if [ "$1" = '-h' ]; then
27
usage
28
fi
29
30
-#@TODO: Works, but throws a fatal error message if run in a non-git dir. We need to suppress that output.
31
-
32
-git rev-parse --quiet --abbrev-ref HEAD
33
-exit $?
+git rev-parse --quiet --abbrev-ref HEAD 2>/dev/null
+exit $?
0 commit comments