projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix wrong filename listing bug in git-ls-tree.
[git.git]
/
git-status.sh
diff --git
a/git-status.sh
b/git-status.sh
index
621fa49
..
44398d7
100755
(executable)
--- a/
git-status.sh
+++ b/
git-status.sh
@@
-31,15
+31,15
@@
report () {
[ "$header" ]
}
[ "$header" ]
}
-branch=
`readlink "$GIT_DIR/HEAD"`
+branch=
$(GIT_DIR="$GIT_DIR" git-symbolic-ref HEAD)
case "$branch" in
refs/heads/master) ;;
*) echo "# On branch $branch" ;;
esac
case "$branch" in
refs/heads/master) ;;
*) echo "# On branch $branch" ;;
esac
-git-update-index -
-refresh >/dev/null 2>&1
+git-update-index -
q --unmerged --refresh || exit
-if
test -f "$GIT_DIR/HEAD"
+if
GIT_DIR="$GIT_DIR" git-rev-parse --verify HEAD >/dev/null 2>&1
then
git-diff-index -M --cached HEAD |
sed 's/^://' |
then
git-diff-index -M --cached HEAD |
sed 's/^://' |