File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,13 @@ get_remote_merge_branch () {
89
89
refs/heads/* ) remote=${remote# refs/ heads/ } ;;
90
90
refs/* | tags/* | remotes/* ) remote=
91
91
esac
92
-
93
- [ -n " $remote " ] && echo " refs/remotes/$repo /$remote "
92
+ [ -n " $remote " ] && case " $repo " in
93
+ .)
94
+ echo " refs/heads/$remote "
95
+ ;;
96
+ * )
97
+ echo " refs/remotes/$repo /$remote "
98
+ ;;
99
+ esac
94
100
esac
95
101
}
Original file line number Diff line number Diff line change @@ -222,4 +222,11 @@ test_expect_success 'git pull --rebase does not reapply old patches' '
222
222
)
223
223
'
224
224
225
+ test_expect_success ' git pull --rebase against local branch' '
226
+ git checkout -b copy2 to-rebase-orig &&
227
+ git pull --rebase . to-rebase &&
228
+ test "conflicting modification" = "$(cat file)" &&
229
+ test file = "$(cat file2)"
230
+ '
231
+
225
232
test_done
You can’t perform that action at this time.
0 commit comments