Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'np/pack'
[gitweb.git]
/
t
/
t7102-reset.sh
diff --git
a/t/t7102-reset.sh
b/t/t7102-reset.sh
index f64b1cbf75e82c22efc80dc817c340feb036a752..cea9afb764226d3086450cb7c53c881bb9803eec 100755
(executable)
--- a/
t/t7102-reset.sh
+++ b/
t/t7102-reset.sh
@@
-402,4
+402,11
@@
test_expect_success 'test resetting the index at give paths' '
'
+test_expect_success 'resetting an unmodified path is a no-op' '
+ git reset --hard &&
+ git reset -- file1 &&
+ git diff-files --exit-code &&
+ git diff-index --cached --exit-code HEAD
+'
+
test_done