git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git add -i doesn't update permissions

From
JSJörg Sommer <joerg@alea.gnuu.de>
Date
Mar 26, 2008, 10:23 UTC
Message-ID
<20080326102332.GA26842@alea.gnuu.de>
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.
Next: Jeff King
Message 1 of 5 in “git add -i doesn't update permissions”
  1. Jörg SommerMar 26, 2008
  2. Jeff KingMar 27, 2008
  3. Jeff KingMar 27, 2008
  4. Wincent ColaiutaMar 27, 2008
  5. Junio C HamanoMar 27, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.