summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4525e8e)
raw | patch | inline | side by side (parent: 4525e8e)
author | Santi Béjar <santi@agolina.net> | |
Thu, 16 Jul 2009 00:09:14 +0000 (02:09 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 19 Jul 2009 17:28:50 +0000 (10:28 -0700) |
If your upstream has rebased you can do:
git pull --rebase
but only if you haven't fetch before.
Mark this case as test_expect_failure, in a later patch it will be
changed to test_expect_success.
Signed-off-by: Santi Béjar <santi@agolina.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git pull --rebase
but only if you haven't fetch before.
Mark this case as test_expect_failure, in a later patch it will be
changed to test_expect_success.
Signed-off-by: Santi Béjar <santi@agolina.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5520-pull.sh | patch | blob | history |
diff --git a/t/t5520-pull.sh b/t/t5520-pull.sh
index c5a2e66a09b9a871fb97142a58de51097a685ae0..3ebc886bdcb97f2473ab2e05afdad933401f44b8 100755 (executable)
--- a/t/t5520-pull.sh
+++ b/t/t5520-pull.sh
'
+test_expect_failure 'rebased upstream + fetch + pull --rebase' '
+
+ git update-ref refs/remotes/me/copy copy-orig &&
+ git reset --hard to-rebase-orig &&
+ git checkout --track -b to-rebase3 me/copy &&
+ git reset --hard to-rebase-orig &&
+ git fetch &&
+ test_must_fail git pull --rebase &&
+ git rebase --abort &&
+ test "conflicting modification" = "$(cat file)" &&
+ test file = "$(cat file2)"
+
+'
+
test_expect_success 'pull --rebase dies early with dirty working directory' '
git checkout to-rebase &&