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

Re: Commit cce8d6fdb introduces file t/t5100/nul, git tree is now incompatible with Cygwin (and probably Windows)

From
Mark Levedahl <mlevedahl@gmail.com>
Date
May 26, 2008, 17:37 UTC
Message-ID
<483AF570.9000609@gmail.com>
In-Reply-To
<alpine.DEB.1.00.0805261521130.30431@racer>
Johannes Schindelin wrote:
Show 16 quoted lines
>> As a for instance of the troubles:
>>
>> git>git checkout -f origin/master
>> Previous HEAD position was a2f5be5... Merge branch
>> 'jk/maint-send-email-compose' into maint
>> error: git-checkout-index: unable to create file t/t5100/nul (File exists)
>>
>> As this commit is part of the published master branch, I am not sure the 
>> correct resolution: leaving this commit in place means that any commit 
>> between it and a commit fixing this will always cause an error on Cygwin 
>> / Windows. Of course, it *is* on the published master branch.
>>     
>
> That's the case for all regressions: we do not rewrite history for them.
>
>   

I understand that, and the reasons: however, as this leads to a long sequence of commits pointing to *illegal* trees, not just trees with bad code, a different policy might be in order here. Or, it might not.

> As for the resolution, could you quickly try the 'my-next' branch of 
> git://repo.or.cz/git/dscho.git?
>
>   
I can check that branch out, but don't get very far in the tests:
*** t0004-unwritable.sh ***
*   ok 1: setup
* FAIL 2: write-tree should notice unwritable repository
                (
                        chmod a-w .git/objects
                        test_must_fail git write-tree
                )
                status=$?
                chmod 775 .git/objects
                (exit $status)
* FAIL 3: commit should notice unwritable repository
                (
                        chmod a-w .git/objects
                        test_must_fail git commit -m second
                )
                status=$?
                chmod 775 .git/objects
                (exit $status)
* FAIL 4: update-index should notice unwritable repository
                (
                        echo a >file &&
                        chmod a-w .git/objects
                        test_must_fail git update-index file
                )
                status=$?
                chmod 775 .git/objects
                (exit $status)
* FAIL 5: add should notice unwritable repository
                (
                        echo b >file &&
                        chmod a-w .git/objects
                        test_must_fail git add file
                )
                status=$?
                chmod 775 .git/objects
                (exit $status)
* failed 4 among 5 test(s)
make[1]: *** [t0004-unwritable.sh] Error 1
make[1]: Leaving directory `/usr/src/dscho
make: *** [test] Error 2

I don't have access to a linux box today, so I can't manipulate master to find if that branch with your patch would work right now.

Mark
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 3 of 42 in “Commit cce8d6fdb introduces file t/t5100/nul, git tree is now incompatible with Cygwin (and probably Windows)”
  1. Mark LevedahlMay 26, 2008
  2. Johannes SchindelinMay 26, 2008
  3. Mark LevedahlMay 26, 2008
  4. Johannes SchindelinMay 26, 2008
  5. Mark LevedahlMay 26, 2008
  6. Johannes SchindelinMay 26, 2008
  7. Johannes SchindelinMay 26, 2008
  8. Eric BlakeMay 27, 2008
  9. Junio C HamanoMay 28, 2008
  10. Wincent ColaiutaMay 28, 2008
  11. Lea WiemannMay 28, 2008
  12. Wincent ColaiutaMay 28, 2008
  13. Jakub NarebskiMay 28, 2008
  14. Johannes SchindelinMay 29, 2008
  15. Wincent ColaiutaMay 29, 2008
  16. Johannes SchindelinMay 29, 2008
  17. Wincent ColaiutaMay 29, 2008
  18. Steffen ProhaskaMay 31, 2008
  19. gitweb: Remove gitweb/test/ directoryJakub Narebski, May 31, 2008
  20. Wincent ColaiutaMay 31, 2008
  21. Johannes SchindelinMay 31, 2008
  22. Jakub NarebskiJun 1, 2008
  23. Kay SieversJun 1, 2008
  24. Wincent ColaiutaJun 1, 2008
  25. Junio C HamanoJun 1, 2008
  26. Jakub NarebskiJun 1, 2008
  27. Avery PennarunMay 28, 2008
  28. Junio C HamanoMay 28, 2008
  29. Sverre RabbelierMay 28, 2008
  30. Avery PennarunMay 28, 2008
  31. Junio C HamanoMay 28, 2008
  32. Daniel BarkalowMay 28, 2008
  33. Junio C HamanoMay 28, 2008
  34. Daniel BarkalowMay 28, 2008
  35. Junio C HamanoMay 28, 2008
  36. "git checkout -- paths..." should signal errorJunio C Hamano, May 28, 2008
  37. Marius Storm-OlsenMay 29, 2008
  38. Daniel BarkalowMay 29, 2008
  39. Daniel BarkalowMay 28, 2008
  40. Makefile: wt-status.h is also a lib headerJohannes Schindelin, May 26, 2008
  41. Junio C HamanoMay 26, 2008
  42. Johannes SchindelinMay 26, 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.