Git development
 help / color / mirror / Atom feed
* git ls-remote windows issue.
@ 2022-11-27 18:25 Kirill Frolov
  2022-11-27 18:38 ` rsbecker
  2022-11-27 18:48 ` Philip Oakley
  0 siblings, 2 replies; 3+ messages in thread
From: Kirill Frolov @ 2022-11-27 18:25 UTC (permalink / raw)
  To: git

When i run  "git ls-remote `origin` HEAD" on windows machine i get 
"fatal: ''origin'' does not appear to be a git repository"

When i run the same command on same repository on linux machine i get 
"b7efcb7055a6d45f53c05270a2420aaedaba4d02        HEAD"



^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: git ls-remote windows issue.
  2022-11-27 18:25 git ls-remote windows issue Kirill Frolov
@ 2022-11-27 18:38 ` rsbecker
  2022-11-27 18:48 ` Philip Oakley
  1 sibling, 0 replies; 3+ messages in thread
From: rsbecker @ 2022-11-27 18:38 UTC (permalink / raw)
  To: 'Kirill Frolov', git

On November 27, 2022 1:26 PM, Kirill Frolov wrote:
>When i run  "git ls-remote `origin` HEAD" on windows machine i get
>"fatal: ''origin'' does not appear to be a git repository"
>
>When i run the same command on same repository on linux machine i get
>"b7efcb7055a6d45f53c05270a2420aaedaba4d02        HEAD"

Try removing the quote characters around origin under Windows. I can reproduce this on Linux using "'origin'", so it appears that the single quotes in your Windows command prompt are being passed in with origin instead of removed as in Linux.

-Randall


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: git ls-remote windows issue.
  2022-11-27 18:25 git ls-remote windows issue Kirill Frolov
  2022-11-27 18:38 ` rsbecker
@ 2022-11-27 18:48 ` Philip Oakley
  1 sibling, 0 replies; 3+ messages in thread
From: Philip Oakley @ 2022-11-27 18:48 UTC (permalink / raw)
  To: Kirill Frolov, git

On 27/11/2022 18:25, Kirill Frolov wrote:
> When i run  "git ls-remote `origin` HEAD" on windows machine i get
> "fatal: ''origin'' does not appear to be a git repository"
>

Are those the right quote marks? Were the commands directly copy/pasted?
Note how the report (as received) has back quotes for the command, and
then double quoting of ''origin'' on the error resport.

> When i run the same command on same repository on linux machine i get
> "b7efcb7055a6d45f53c05270a2420aaedaba4d02        HEAD"
>
>
--
Philip

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-11-27 18:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-27 18:25 git ls-remote windows issue Kirill Frolov
2022-11-27 18:38 ` rsbecker
2022-11-27 18:48 ` Philip Oakley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox