git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git add -i doesn't update permissions
@ 2008-03-26 10:23 Jörg Sommer
  2008-03-27  5:57 ` Jeff King
  0 siblings, 1 reply; 5+ messages in thread
From: Jörg Sommer @ 2008-03-26 10:23 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 681 bytes --]

Hi,

diff --git a/t/t3701-add-interactive.sh b/t/t3701-add-interactive.sh
index 77c90f6..424271c 100755
--- a/t/t3701-add-interactive.sh
+++ b/t/t3701-add-interactive.sh
@@ -66,4 +66,14 @@ test_expect_success 'revert works (commit)' '
        grep "unchanged *+3/-0 file" output
 '
 
+test_expect_success 'update file permissions' '
+       git reset --hard &&
+       chmod +x file &&
+       printf "p\n1\n" | git add -i
+'
+
+test_expect_failure "update file permissions doesn't work" '
+       git status
+'
+
 test_done

Bye, Jörg.
-- 
Unsere Zweifel sind Verräter und oft genug verspielen wir den möglichen
Gewinn, weil wir den Versuch nicht wagen.

[-- Attachment #2: Digital signature http://en.wikipedia.org/wiki/OpenPGP --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-03-27 16:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-26 10:23 git add -i doesn't update permissions Jörg Sommer
2008-03-27  5:57 ` Jeff King
2008-03-27  6:29   ` Jeff King
2008-03-27  6:32   ` Wincent Colaiuta
2008-03-27 16:08   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).