Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Merge pull request #26 from phatblat/pull/rebase-marker-fix
Browse files Browse the repository at this point in the history
Fix detection for rebase in progress
  • Loading branch information
rtomayko committed Mar 5, 2013
2 parents 3420b67 + 599a2ce commit 7b82d95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-sh.bash
Expand Up @@ -223,7 +223,7 @@ _git_workdir() {
# detect if the repository is in a special state (rebase or merge)
_git_repo_state() {
local git_dir="$(git rev-parse --show-cdup).git"
if test -d "$git_dir/rebase-merge"; then
if test -d "$git_dir/rebase-merge" -o -d "$git_dir/rebase-apply"; then
local state_marker="(rebase)"
elif test -f "$git_dir/MERGE_HEAD"; then
local state_marker="(merge)"
Expand Down

0 comments on commit 7b82d95

Please sign in to comment.