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

should git push . from:to work?

From
MTMichael S. Tsirkin <mst@mellanox.co.il>
Date
Feb 1, 2007, 14:56 UTC
Message-ID
<20070201145659.GA30716@mellanox.co.il>

Should I not be able to use . as a URL? git push seems to think . is a remote, not a URL:

mst@mst-lt:~/scm/sdpnetstat$ git push . refs/heads/master:refs/heads/ofed_1_2
fatal: remote '.' has no URL
mst@mst-lt:~/scm/sdpnetstat$ git push $PWD refs/heads/master:refs/heads/ofed_1_2
updating 'refs/heads/ofed_1_2' using 'refs/heads/master'
  from c16c0acb0906209868d5682d0668ada0f250da02
  to   cfc08ab244ece514f7c453d27397281129f14264
Generating pack...
Done counting 0 objects.
Writing 0 objects.
Total 0 (delta 0), reused 0 (delta 0)
Unpacking 0 objects
refs/heads/ofed_1_2: c16c0acb0906209868d5682d0668ada0f250da02 -> cfc08ab244ece514f7c453d27397281129f14264
So there's an easy workaround, but why does this work for pull but not for push?
-- 
MST
Next: Johannes Schindelin
Message 1 of 4 in “should git push . from:to work?”
  1. Michael S. TsirkinFeb 1, 2007
  2. Johannes SchindelinFeb 1, 2007
  3. Michael S. TsirkinFeb 1, 2007
  4. Jakub NarebskiFeb 2, 2007

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.