Message ID | patch-1.1-21a9cb49299-20221115T233516Z-avarab@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 23fb328c8de7d4ad07360629109cf1b5fa42daa6 |
Headers | show |
Series | t7610: use "file:///dev/null", not "/dev/null", fixes MinGW | expand |
On Wed, Nov 16, 2022 at 12:40:14AM +0100, Ævar Arnfjörð Bjarmason wrote: > On MinGW the "/dev/null" is translated to "nul" on command-lines, even > though as in this case it'll never end up referring to an actual file. > > So on Windows the fix for the previous "example.com" timeout issue in > 8354cf752ec (t7610: fix flaky timeout issue, don't clone from > example.com, 2022-11-05) would yield: > > fatal: repo URL: 'nul' must be absolute or begin with ./|../ > > Let's evade this yet again by prefixing this with "file://", which > makes this pass in the Windows CI. Thanks very much. I just picked this up on top of my 'ab/t7610-timeout' branch and pushed it out to ttaylorr/git to double-check your results against CI. (Not that I don't trust you, of course, but I'm feeling like I should be extra-cautious ;-)). Assuming that all looks good, then I'll push out a new version of 'next' and dependent branches to the usual spots so that we can get 'next' back to green. Thanks for working on this so quickly. Thanks, Taylor
On Tue, Nov 15 2022, Taylor Blau wrote: > On Wed, Nov 16, 2022 at 12:40:14AM +0100, Ævar Arnfjörð Bjarmason wrote: >> On MinGW the "/dev/null" is translated to "nul" on command-lines, even >> though as in this case it'll never end up referring to an actual file. >> >> So on Windows the fix for the previous "example.com" timeout issue in >> 8354cf752ec (t7610: fix flaky timeout issue, don't clone from >> example.com, 2022-11-05) would yield: >> >> fatal: repo URL: 'nul' must be absolute or begin with ./|../ >> >> Let's evade this yet again by prefixing this with "file://", which >> makes this pass in the Windows CI. > > Thanks very much. I just picked this up on top of my 'ab/t7610-timeout' > branch and pushed it out to ttaylorr/git to double-check your results > against CI. (Not that I don't trust you, of course, but I'm feeling like > I should be extra-cautious ;-)). > > Assuming that all looks good, then I'll push out a new version of 'next' > and dependent branches to the usual spots so that we can get 'next' back > to green. > > Thanks for working on this so quickly. And thank for picking it up! Looks like "next" is passing CI now: https://github.com/git/git/actions/runs/3475751137/jobs/5810308794
On Thu, Nov 17, 2022 at 11:08:08AM +0100, Ævar Arnfjörð Bjarmason wrote: > And thank for picking it up! Looks like "next" is passing CI now: > https://github.com/git/git/actions/runs/3475751137/jobs/5810308794 No problem. I dislike pushing out 'next' without a corresponding WC report, but I dislike 'next' failing CI even more. So I felt like here it was OK. Thanks, Taylor
diff --git a/t/t7610-mergetool.sh b/t/t7610-mergetool.sh index b1ba0d9a088..7b957022f1a 100755 --- a/t/t7610-mergetool.sh +++ b/t/t7610-mergetool.sh @@ -33,7 +33,7 @@ test_expect_success 'setup' ' git add foo && git commit -m "Add foo" ) && - git submodule add /dev/null submod && + git submodule add file:///dev/null submod && git add file1 "spaced name" file1[1-4] subdir/file3 .gitmodules submod && git commit -m "add initial versions" && @@ -614,7 +614,7 @@ test_expect_success 'submodule in subdirectory' ' ) ) && test_when_finished "rm -rf subdir/subdir_module" && - git submodule add /dev/null subdir/subdir_module && + git submodule add file:///dev/null subdir/subdir_module && git add subdir/subdir_module && git commit -m "add submodule in subdirectory" &&