{"thread":{"id":"6604","subject":"should git push . from:to work?","startedAt":"2007-02-01T14:56:59Z","lastAt":"2007-02-02T10:02:50Z","messageCount":4,"participants":["Michael S. Tsirkin","Johannes Schindelin","Jakub Narebski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"33239","messageId":"20070201145659.GA30716@mellanox.co.il","threadId":"6604","inReplyTo":null,"subject":"should git push . from:to work?","fromName":"Michael S. Tsirkin","fromEmail":"mst@mellanox.co.il","sentAt":"2007-02-01T14:56:59Z","receivedAt":"2007-02-01T14:56:59Z","isPatch":false,"sender":{"key":"mst@kernel.org","avatar":null},"body":"Should I not be able to use . as a URL?\ngit push seems to think . is a remote, not a URL:\n\nmst@mst-lt:~/scm/sdpnetstat$ git push . refs/heads/master:refs/heads/ofed_1_2\nfatal: remote '.' has no URL\nmst@mst-lt:~/scm/sdpnetstat$ git push $PWD refs/heads/master:refs/heads/ofed_1_2\nupdating 'refs/heads/ofed_1_2' using 'refs/heads/master'\n  from c16c0acb0906209868d5682d0668ada0f250da02\n  to   cfc08ab244ece514f7c453d27397281129f14264\nGenerating pack...\nDone counting 0 objects.\nWriting 0 objects.\nTotal 0 (delta 0), reused 0 (delta 0)\nUnpacking 0 objects\n\nrefs/heads/ofed_1_2: c16c0acb0906209868d5682d0668ada0f250da02 -> cfc08ab244ece514f7c453d27397281129f14264\n\nSo there's an easy workaround, but why does this work for pull but not for push?\n\n-- \nMST\n"},{"id":"33240","messageId":"Pine.LNX.4.63.0702011559100.22628@wbgn013.biozentrum.uni-wuerzburg.de","threadId":"6604","inReplyTo":"20070201145659.GA30716@mellanox.co.il","subject":"Re: should git push . from:to work?","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-02-01T15:00:51Z","receivedAt":"2007-02-01T15:00:51Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Thu, 1 Feb 2007, Michael S. Tsirkin wrote:\n\n> Should I not be able to use . as a URL?\n> git push seems to think . is a remote, not a URL:\n\nYou seem to be infected by the less-than-intuitive\n\"git pull .\"-makes-perfect-sense camp.\n\nWhy not just do \"git branch to from\"?\n\nCiao,\nDscho\n"},{"id":"33241","messageId":"20070201150545.GA30858@mellanox.co.il","threadId":"6604","inReplyTo":"Pine.LNX.4.63.0702011559100.22628@wbgn013.biozentrum.uni-wuerzburg.de","subject":"Re: should git push . from:to work?","fromName":"Michael S. Tsirkin","fromEmail":"mst@mellanox.co.il","sentAt":"2007-02-01T15:05:45Z","receivedAt":"2007-02-01T15:05:45Z","isPatch":false,"sender":{"key":"mst@kernel.org","avatar":null},"body":"> Quoting Johannes Schindelin <Johannes.Schindelin@gmx.de>:\n> Subject: Re: should git push . from:to work?\n> \n> Hi,\n> \n> On Thu, 1 Feb 2007, Michael S. Tsirkin wrote:\n> \n> > Should I not be able to use . as a URL?\n> > git push seems to think . is a remote, not a URL:\n> \n> You seem to be infected by the less-than-intuitive\n> \"git pull .\"-makes-perfect-sense camp.\n\nNot really, I don't really care.\n\n> Why not just do \"git branch to from\"?\n\nBecause I want to update am existing local branch that is different from what\nI have checked out.\n\n-- \nMST\n"},{"id":"33366","messageId":"epv25o$tpm$1@sea.gmane.org","threadId":"6604","inReplyTo":"20070201150545.GA30858@mellanox.co.il","subject":"Re: should git push . from:to work?","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2007-02-02T10:02:50Z","receivedAt":"2007-02-02T10:02:50Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Michael S. Tsirkin wrote:\n\n>> Quoting Johannes Schindelin <Johannes.Schindelin@gmx.de>:\n>> Subject: Re: should git push . from:to work?\n\n>> On Thu, 1 Feb 2007, Michael S. Tsirkin wrote:\n>> \n>> > Should I not be able to use . as a URL?\n>> > git push seems to think . is a remote, not a URL:\n>> \n>> You seem to be infected by the less-than-intuitive\n>> \"git pull .\"-makes-perfect-sense camp.\n> \n> Not really, I don't really care.\n> \n>> Why not just do \"git branch to from\"?\n> \n> Because I want to update am existing local branch that is different from\n> what I have checked out.\n\nBut git-branch does _not_ do checkout, so you can use it to manipulate\nbranches even if you are on different branch (even if you have different\nbranch checked out)!\n\nNeither git-fetch not git-push understand '.' remote; git-pull was (and is)\nspecial case to allow git-fetch+git-pull workflow.\n-- \nJakub Narebski\nWarsaw, Poland\nShadeHawk on #git\n"}]}