Permalink
Browse files

One last fix.

  • Loading branch information...
1 parent 05b183d commit 139863da94734be3a4c9054e43493087519eda9c @darconeous committed Jan 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bash/ps1-git-svn.sh
View
@@ -22,7 +22,7 @@ function parse_git_branch() {
[ "$TOPLEVEL" = "/" ] && return
[ "$TOPLEVEL" = "--show-toplevel" ] && {
# Older versions of GIT.
- TOPLEVEL=./
+ TOPLEVEL="$(git rev-parse --show-cdup 2>/dev/null)"
}
BRANCH="$(sed -n '/ref: /!{a\

0 comments on commit 139863d

Please sign in to comment.