Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t5520: use test_config to set/unset git config variables (leftover bits)
author
Ramkumar Ramachandra
<artagnon@gmail.com>
Thu, 28 Mar 2013 12:40:19 +0000
(18:10 +0530)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 28 Mar 2013 15:16:07 +0000
(08:16 -0700)
Configuration from test_config does not last beyond the end of the
current test assertion, making each test easier to think about in
isolation.
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5520-pull.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
cee683b
)
diff --git
a/t/t5520-pull.sh
b/t/t5520-pull.sh
index cb1a4c581fe96d6bf5fe2cfc6e4870a5146e2d38..6af6c63350383e049082e61d3c8133af79d5a749 100755
(executable)
--- a/
t/t5520-pull.sh
+++ b/
t/t5520-pull.sh
@@
-167,9
+167,9
@@
test_expect_success 'pull --rebase dies early with dirty working directory' '
git update-ref refs/remotes/me/copy copy^ &&
COPY=$(git rev-parse --verify me/copy) &&
git rebase --onto $COPY copy &&
git update-ref refs/remotes/me/copy copy^ &&
COPY=$(git rev-parse --verify me/copy) &&
git rebase --onto $COPY copy &&
-
git
config branch.to-rebase.remote me &&
-
git
config branch.to-rebase.merge refs/heads/copy &&
-
git
config branch.to-rebase.rebase true &&
+
test_
config branch.to-rebase.remote me &&
+
test_
config branch.to-rebase.merge refs/heads/copy &&
+
test_
config branch.to-rebase.rebase true &&
echo dirty >> file &&
git add file &&
test_must_fail git pull &&
echo dirty >> file &&
git add file &&
test_must_fail git pull &&