{"thread":{"id":"33072","subject":"Fwd: Strange remote interaction","startedAt":"2013-03-05T01:11:01Z","lastAt":"2013-03-05T09:46:20Z","messageCount":3,"participants":["Javier Domingo","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"210602","messageId":"CALZVapnDyF7m=R7xrjUJUtyr9xVUeDnL4tQSCoM2ze8GSuUUyg@mail.gmail.com","threadId":"33072","inReplyTo":"CALZVapm32S2XqA48KCmfr8O5PVSNMgRj=JfRm_yyYz6N6wE0=A@mail.gmail.com","subject":"Fwd: Strange remote interaction","fromName":"Javier Domingo","fromEmail":"javierdo1@gmail.com","sentAt":"2013-03-05T01:11:01Z","receivedAt":"2013-03-05T01:11:01Z","isPatch":false,"sender":{"key":"javierdo1@gmail.com","avatar":"https://gravatar.com/avatar/0f43d4d2e5f4320e8b5e1a46914213c5459dd0de261ab1587f222827f863d727?d=mp&s=160"},"body":"Hi,\n\nI have just had the attached bash session, and I have no idea on what\nis going on.\n\nAny help appreciated,\n\nJavier Domingo\n"},{"id":"210605","messageId":"7v1ubuwhec.fsf@alter.siamese.dyndns.org","threadId":"33072","inReplyTo":"CALZVapnDyF7m=R7xrjUJUtyr9xVUeDnL4tQSCoM2ze8GSuUUyg@mail.gmail.com","subject":"Re: Fwd: Strange remote interaction","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2013-03-05T05:21:47Z","receivedAt":"2013-03-05T05:21:47Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Javier Domingo <javierdo1@gmail.com> writes:\n\n> I have just had the attached bash session, and I have no idea on what\n> is going on.\n>\n> Any help appreciated,\n>\n> Javier Domingo\n>\n> javier@frodo:~/proyectos/pfc$ git push -vvv javier master\n> Pushing to git@server:javier/pfc\n> To git@server:javier/pfc\n>  ! [rejected]        master -> master (non-fast-forward)\n> error: failed to push some refs to 'git@server:javier/pfc'\n> hint: Updates were rejected because a pushed branch tip is behind its remote\n> hint: counterpart. Check out this branch and merge the remote changes\n> hint: (e.g. 'git pull') before pushing again.\n> hint: See the 'Note about fast-forwards' in 'git push --help' for details.\n\nSo push is going to git@server:javier/pfc repository, while ...\n\n> javier@frodo:~/proyectos/pfc$ git fetch -vvv javier \n> From server:javier/pfc\n>  = [up to date]      master     -> javier/master\n\n... fetch/pull goes to server:javier/pfc repository.  Are they the\nsame?\n\nIn a usual set-up, an access to git@server:javier/pfc will first\nlocate the home directory for the user \"git\" (the token before \"@\"),\nand then its subdirectory javier/pfc, e.g. /home/git/javier/pfc,\nwhile an access to server:javier/pfc will first locate the home\ndirectory of whatever username the ssh connection uses by default\n(typically the local user but ~/.ssh/config may have \"User\"\ndirective for the server) and then its subdirectory javier/pfc,\ne.g. /home/javier/javier/pfc.  These two may be different locations.\n\nDo these two commands show the same output?\n\n\t$ git ls-remote git@server:javier/pfc refs/heads/master\n        $ git ls-remote server:javier/pfc refs/heads/master\n\nIf the above conjecture is correct, I suspect they don't.\n"},{"id":"210617","messageId":"CALZVapkk2bugkSuqQ0EU7Zu9fjHGqrtAeArbG-ycJdS=morMLQ@mail.gmail.com","threadId":"33072","inReplyTo":"7v1ubuwhec.fsf@alter.siamese.dyndns.org","subject":"Re: Fwd: Strange remote interaction","fromName":"Javier Domingo","fromEmail":"javierdo1@gmail.com","sentAt":"2013-03-05T09:46:20Z","receivedAt":"2013-03-05T09:46:20Z","isPatch":false,"sender":{"key":"javierdo1@gmail.com","avatar":"https://gravatar.com/avatar/0f43d4d2e5f4320e8b5e1a46914213c5459dd0de261ab1587f222827f863d727?d=mp&s=160"},"body":"> In a usual set-up, an access to git@server:javier/pfc will first\n> locate the home directory for the user \"git\" (the token before \"@\"),\n> and then its subdirectory javier/pfc, e.g. /home/git/javier/pfc,\n> while an access to server:javier/pfc will first locate the home\n> directory of whatever username the ssh connection uses by default\n> (typically the local user but ~/.ssh/config may have \"User\"\n> directive for the server) and then its subdirectory javier/pfc,\n> e.g. /home/javier/javier/pfc.  These two may be different locations.\n>\n> Do these two commands show the same output?\n>\n>         $ git ls-remote git@server:javier/pfc refs/heads/master\n>         $ git ls-remote server:javier/pfc refs/heads/master\n>\n> If the above conjecture is correct, I suspect they don't.\n\nI have a gitolite setup there, so it is imposible the give the same\noutput. Anyways, as I don't have a user in the server machine, the\nsecond fails.\n\n$ git ls-remote git@server:javier/pfc\n22692a2d69d3138b7ccebd64e72c66ea8bf69e9f HEAD\n22692a2d69d3138b7ccebd64e72c66ea8bf69e9f refs/heads/master\n\nIt is the first time I encounter such a problem.\n"}]}