Merge pull request #128 from dlee/fix_branch_shortcuts_offset

Fix shortcuts offset when branch_shortcuts encounters detached HEAD
This commit is contained in:
Wilhelmina Drengwitz
2017-02-07 09:08:55 -05:00
committed by GitHub

View File

@@ -33,6 +33,7 @@ EOF
# Set numbered file shortcut in variable
local e=1
IFS=$'\n'
for branch in $($_git_cmd branch "$@" | sed "s/^[* ]\{2\}//"); do
export $git_env_char$e="$branch"
if [ "${scmbDebug:-}" = "true" ]; then echo "Set \$$git_env_char$e => $file"; fi