git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
a900999
)
t2106: make test independent of the current main branch name
author
Johannes Schindelin
<redacted>
Wed, 18 Nov 2020 14:49:06 +0000
(14:49 +0000)
committer
Junio C Hamano
<redacted>
Wed, 18 Nov 2020 18:27:38 +0000
(10:27 -0800)
We do have this wonderful shortcut `git checkout -` to go back to the
previous branch, thanks to the reflog.
Signed-off-by: Johannes Schindelin <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/t2106-update-index-assume-unchanged.sh
patch
|
blob
|
history
diff --git
a/t/t2106-update-index-assume-unchanged.sh
b/t/t2106-update-index-assume-unchanged.sh
index ff0947f38813123b8388360228cb6530d7a0b645..3396f2336362337ed104b75af71a4dc7aa3d4b2a 100755
(executable)
--- a/
t/t2106-update-index-assume-unchanged.sh
+++ b/
t/t2106-update-index-assume-unchanged.sh
@@
-20,7
+20,7
@@
test_expect_success 'do not switch branches with dirty file' '
git checkout other &&
echo dirt >file &&
git update-index --assume-unchanged file &&
- test_must_fail git checkout
master
+ test_must_fail git checkout
-
'
test_done
git clone https://git.99rst.org/PROJECT