{"thread":{"id":"10429","subject":"odd behavior with concurrent fetch/checkout","startedAt":"2007-10-22T16:51:25Z","lastAt":"2007-10-22T19:46:38Z","messageCount":2,"participants":["J. Bruce Fields"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"56894","messageId":"20071022165125.GG583@fieldses.org","threadId":"10429","inReplyTo":null,"subject":"odd behavior with concurrent fetch/checkout","fromName":"J. Bruce Fields","fromEmail":"bfields@fieldses.org","sentAt":"2007-10-22T16:51:25Z","receivedAt":"2007-10-22T16:51:25Z","isPatch":false,"sender":{"key":"bfields@citi.umich.edu","avatar":null},"body":"Just now I checked out a topic branch in my working repo:\n\n\tgit checkout server-xprt-switch\n\nand while waiting for it to complete (I just started work and caches\nwere all cold), I ran a\n\n\tgit fetch origin\n\nin another window to update from Linus.  The git fetch gave a warning:\n\n\tremote: Generating pack...\n\tremote: Counting objects: 7550\n\tremote: Done counting 12885 objects.\n\tremote: Result has 8400 objects.\n\tremote: Deltifying 8400 objects...\n\tremote:  100% (8400/8400) done\n\tIndexing 8400 objects...\n\tremote: Total 8400 (delta 7257), reused 5696 (delta 4586)\n\t 100% (8400/8400) done\n\tResolving 7257 deltas...\n\t 100% (7257/7257) done\n\t* refs/remotes/origin/master: fast forward to branch 'master' of\n\t* git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6\n\t  old..new: d85714d..55b70a0\n\tCannot fetch into the current branch.\n\nWhy the warning?  Also, afterwards I was left with server-xprt-switch\npointing to the tip of the branch I'd just switched from (another\nmiscellaneous topic branch).  The working directory was in some\ncompletely different state--thanks to a quick reset --hard I don't know\nwhat it was.  Also, in the reflog for the checked-out branch:\n\n\tcommit bac1e7977eb4781e62cee7f1c7c3d13a9e5d8d74\n\tReflog: server-xprt-switch@{0} (J. Bruce Fields <bfields@citi.umich.edu>)\n\tReflog message: fetch origin: Undoing incorrectly fetched HEAD.\n\tAuthor: J. Bruce Fields <bfields@citi.umich.edu>\n\tDate:   Mon Oct 22 12:32:37 2007 -0400\n\t...\n\nWhy was a fetch into the remote fooling with HEAD or anything under\nrefs/heads/?\n\n--b.\n"},{"id":"56910","messageId":"20071022194638.GN583@fieldses.org","threadId":"10429","inReplyTo":"20071022165125.GG583@fieldses.org","subject":"Re: odd behavior with concurrent fetch/checkout","fromName":"J. Bruce Fields","fromEmail":"bfields@fieldses.org","sentAt":"2007-10-22T19:46:38Z","receivedAt":"2007-10-22T19:46:38Z","isPatch":false,"sender":{"key":"bfields@citi.umich.edu","avatar":null},"body":"On Mon, Oct 22, 2007 at 12:51:25PM -0400, J. Bruce Fields wrote:\n> Just now I checked out a topic branch in my working repo:\n> \n> \tgit checkout server-xprt-switch\n> \n> and while waiting for it to complete (I just started work and caches\n> were all cold), I ran a\n> \n> \tgit fetch origin\n> \n> in another window to update from Linus.  The git fetch gave a warning:\n> \n> \tremote: Generating pack...\n> \tremote: Counting objects: 7550\n> \tremote: Done counting 12885 objects.\n> \tremote: Result has 8400 objects.\n> \tremote: Deltifying 8400 objects...\n> \tremote:  100% (8400/8400) done\n> \tIndexing 8400 objects...\n> \tremote: Total 8400 (delta 7257), reused 5696 (delta 4586)\n> \t 100% (8400/8400) done\n> \tResolving 7257 deltas...\n> \t 100% (7257/7257) done\n> \t* refs/remotes/origin/master: fast forward to branch 'master' of\n> \t* git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6\n> \t  old..new: d85714d..55b70a0\n> \tCannot fetch into the current branch.\n\nBy the way, I should have said--this is with git version\n1.5.3.4.208.gc990.\n\n--b.\n\n> \n> Why the warning?  Also, afterwards I was left with server-xprt-switch\n> pointing to the tip of the branch I'd just switched from (another\n> miscellaneous topic branch).  The working directory was in some\n> completely different state--thanks to a quick reset --hard I don't know\n> what it was.  Also, in the reflog for the checked-out branch:\n> \n> \tcommit bac1e7977eb4781e62cee7f1c7c3d13a9e5d8d74\n> \tReflog: server-xprt-switch@{0} (J. Bruce Fields <bfields@citi.umich.edu>)\n> \tReflog message: fetch origin: Undoing incorrectly fetched HEAD.\n> \tAuthor: J. Bruce Fields <bfields@citi.umich.edu>\n> \tDate:   Mon Oct 22 12:32:37 2007 -0400\n> \t...\n> \n> Why was a fetch into the remote fooling with HEAD or anything under\n> refs/heads/?\n> \n> --b.\n> -\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n"}]}