* "make test" fails if /path/to/git.git contains spaces
@ 2008-03-31 21:51 Adam Roben
2008-03-31 23:04 ` Bryan Donlan
0 siblings, 1 reply; 4+ messages in thread
From: Adam Roben @ 2008-03-31 21:51 UTC (permalink / raw)
To: git
I've noticed that "make test" fails if /path/to/git.git contains spaces,
with the following error:
> $ make test
> make -C t/ all
> make[1]: Entering directory `/home/Adam Roben/dev/git/t'
> *** t0000-basic.sh ***
> * error: cannot run git init -- have you built things yet?
> make[1]: *** [t0000-basic.sh] Error 1
> make[1]: Leaving directory `/home/Adam Roben/dev/git/t'
> make: *** [test] Error 2
This is a very common configuration on Cygwin, but clearly not a common
configuration for git developers, or else this error would have been
corrected already.
Do we want to support having spaces in your path? It doesn't seem hard
to fix, but it does seem like the kind of problem that will come up over
and over again if only a very small set of people have this configuration.
-Adam
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: "make test" fails if /path/to/git.git contains spaces 2008-03-31 21:51 "make test" fails if /path/to/git.git contains spaces Adam Roben @ 2008-03-31 23:04 ` Bryan Donlan 2008-04-01 6:29 ` Johannes Sixt 0 siblings, 1 reply; 4+ messages in thread From: Bryan Donlan @ 2008-03-31 23:04 UTC (permalink / raw) To: Adam Roben; +Cc: git On Mon, Mar 31, 2008 at 5:51 PM, Adam Roben <aroben@apple.com> wrote: > I've noticed that "make test" fails if /path/to/git.git contains spaces, > with the following error: > > > $ make test > > make -C t/ all > > make[1]: Entering directory `/home/Adam Roben/dev/git/t' > > *** t0000-basic.sh *** > > * error: cannot run git init -- have you built things yet? > > make[1]: *** [t0000-basic.sh] Error 1 > > make[1]: Leaving directory `/home/Adam Roben/dev/git/t' > > make: *** [test] Error 2 > > This is a very common configuration on Cygwin, but clearly not a common > configuration for git developers, or else this error would have been > corrected already. > > Do we want to support having spaces in your path? It doesn't seem hard > to fix, but it does seem like the kind of problem that will come up over > and over again if only a very small set of people have this configuration. Turns out that while trying to fix the tests, I've found that git-rebase doesn't like a $VISUAL having spaces, so perhaps this should be tested more often :) Or should we just require $VISUAL have no spaces? I'll send a patch once I've got everything passing. Thanks, Bryan ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: "make test" fails if /path/to/git.git contains spaces 2008-03-31 23:04 ` Bryan Donlan @ 2008-04-01 6:29 ` Johannes Sixt 2008-04-03 2:26 ` Bryan Donlan 0 siblings, 1 reply; 4+ messages in thread From: Johannes Sixt @ 2008-04-01 6:29 UTC (permalink / raw) To: Bryan Donlan; +Cc: Adam Roben, git Bryan Donlan schrieb: > On Mon, Mar 31, 2008 at 5:51 PM, Adam Roben <aroben@apple.com> wrote: >> Do we want to support having spaces in your path? It doesn't seem hard >> to fix, but it does seem like the kind of problem that will come up over >> and over again if only a very small set of people have this configuration. > > Turns out that while trying to fix the tests, I've found that > git-rebase doesn't like a $VISUAL having spaces, so perhaps this > should be tested more often :) Or should we just require $VISUAL have > no spaces? > > I'll send a patch once I've got everything passing. There was an attempt in the past to make this working. Please look at this (rather lengthy) thread, in particular, my critique on the patches that were submitted: http://thread.gmane.org/gmane.comp.version-control.git/60544 I really would not like to see the same issues that I took the time to comment on to show up again. -- Hannes ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: "make test" fails if /path/to/git.git contains spaces 2008-04-01 6:29 ` Johannes Sixt @ 2008-04-03 2:26 ` Bryan Donlan 0 siblings, 0 replies; 4+ messages in thread From: Bryan Donlan @ 2008-04-03 2:26 UTC (permalink / raw) To: Johannes Sixt; +Cc: Adam Roben, git On Tue, Apr 1, 2008 at 2:29 AM, Johannes Sixt <j.sixt@viscovery.net> wrote: > Bryan Donlan schrieb: > > > On Mon, Mar 31, 2008 at 5:51 PM, Adam Roben <aroben@apple.com> wrote: > > >> Do we want to support having spaces in your path? It doesn't seem hard > >> to fix, but it does seem like the kind of problem that will come up over > >> and over again if only a very small set of people have this configuration. > > > > Turns out that while trying to fix the tests, I've found that > > git-rebase doesn't like a $VISUAL having spaces, so perhaps this > > should be tested more often :) Or should we just require $VISUAL have > > no spaces? > > > > I'll send a patch once I've got everything passing. > > There was an attempt in the past to make this working. Please look at this > (rather lengthy) thread, in particular, my critique on the patches that > were submitted: > > http://thread.gmane.org/gmane.comp.version-control.git/60544 > > I really would not like to see the same issues that I took the time to > comment on to show up again. Thanks for the advice, I'll try not to make the same mistakes :) I've found a few legitimate bugs as I've been updating the tests, so I'd call this a worthwhile endeavour. I'll send the fixes in question as broken-out patches in the final patch series. Even if tests with space-ridden paths aren't run /often/, it'd still be a good idea to fix them when they're noticed as broken, IMO. (I'm currently testing with quotes and backslashes, too, now :) Thanks, Bryan ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-04-03 2:27 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-03-31 21:51 "make test" fails if /path/to/git.git contains spaces Adam Roben 2008-03-31 23:04 ` Bryan Donlan 2008-04-01 6:29 ` Johannes Sixt 2008-04-03 2:26 ` Bryan Donlan
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).