This commit is contained in:
Ron Shapiro 2014-09-03 16:33:43 +00:00
commit 24701e026c

View file

@ -125,7 +125,6 @@ alias gsd='git svn dcommit'
# Usage example: git pull origin $(current_branch)
#
function current_branch() {
if [ ! -d .git ]; then return; fi
ref=$(git symbolic-ref HEAD 2> /dev/null) || \
ref=$(git rev-parse --short HEAD 2> /dev/null) || return
echo ${ref#refs/heads/}