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

Commit 7b82d95

Browse files
committed
Merge pull request #26 from phatblat/pull/rebase-marker-fix
Fix detection for rebase in progress
2 parents 3420b67 + 599a2ce commit 7b82d95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-sh.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ _git_workdir() {
223223
# detect if the repository is in a special state (rebase or merge)
224224
_git_repo_state() {
225225
local git_dir="$(git rev-parse --show-cdup).git"
226-
if test -d "$git_dir/rebase-merge"; then
226+
if test -d "$git_dir/rebase-merge" -o -d "$git_dir/rebase-apply"; then
227227
local state_marker="(rebase)"
228228
elif test -f "$git_dir/MERGE_HEAD"; then
229229
local state_marker="(merge)"

0 commit comments

Comments
 (0)