Re: [PATCH] Fix the remote note the fetch-tool prints after storing a fetched reference

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH] Fix the remote note the fetch-tool prints after storing a fetched reference

From: J Junio C Hamano <hidden>
Date: 2016-06-15 22:43:14

"Alex Riesen" [off-list ref] writes:
On 6/6/07, Junio C Hamano [off-list ref] wrote:
quoted
I suspect the above misses the point.
Depends on the point. I mean to say: the path in the output
of the command does not exist anywhere.
quoted
The test "ls /home/user/linux" is not relevant.  Ability to say
"git fetch /home/user/linux" is.
This is still ambiguous:
Yup, there is an ambiguity.  Always has been.
Which one was fetched when? /home/user/a or /home/user/a.git?
I am half tempted to say that this is very close to "doctor, it
confuses me when I have both of them".  Imagine the case where
the source were a remote repository _and_ there was no way other
than interacting with it via git protocol.  You cannot really
tell (well, you can tell half, by trying both and if a worked
but a.git didn't you can tell that a.git does not exist) nor you
do not really care.
Besides, I just noticed git-clone is broken WRT the .git
as well: I can clone a "a.git" into "b" (and it ignores -l and -s!),
but I can't fetch the "a" (aka "origin") being in "b". And of
course, "origin" in "b" is setup as "/path/a", not "/path/a.git".
This probably is worth fixing, independent from what the message
says before or after your patch.

Re: [PATCH] Fix the remote note the fetch-tool prints after storing a fetched reference

From: Alex Riesen <hidden>
Date: 2016-06-15 22:43:14

On 6/6/07, J Junio C Hamano [off-list ref] wrote:
quoted
Which one was fetched when? /home/user/a or /home/user/a.git?
I am half tempted to say that this is very close to "doctor, it
confuses me when I have both of them".  Imagine the case where
the source were a remote repository _and_ there was no way other
than interacting with it via git protocol.  You cannot really
tell (well, you can tell half, by trying both and if a worked
but a.git didn't you can tell that a.git does not exist) nor you
do not really care.
Of course you can! Just print the path to the remote EXACTLY
how the user entered it!
quoted
Besides, I just noticed git-clone is broken WRT the .git
as well: I can clone a "a.git" into "b" (and it ignores -l and -s!),
but I can't fetch the "a" (aka "origin") being in "b". And of
course, "origin" in "b" is setup as "/path/a", not "/path/a.git".
This probably is worth fixing, independent from what the message
says before or after your patch.
And "probably" means: it is broken, but this is ok?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help