{"thread":{"id":"27911","subject":"git-pull doesn't update my refs for remotes/origin/master","startedAt":"2011-07-25T07:58:54Z","lastAt":"2011-07-25T08:48:57Z","messageCount":3,"participants":["Graeme Geldenhuys","Michael J Gruber"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"171978","messageId":"4E2D223E.8090505@gmail.com","threadId":"27911","inReplyTo":null,"subject":"git-pull doesn't update my refs for remotes/origin/master","fromName":"Graeme Geldenhuys","fromEmail":"graemeg.lists@gmail.com","sentAt":"2011-07-25T07:58:54Z","receivedAt":"2011-07-25T07:58:54Z","isPatch":false,"sender":{"key":"graemeg.lists@gmail.com","avatar":null},"body":"Hi,\n\nAny idea why this happens? When I do a 'git pull origin master' while in\nthe master branch, it fetches all the latest commits, but doesn't update\nthe 'remotes/origin/master' reference. When I do a 'gitk', the\nremotes/origin/master reference is still pointing to the old original\nHEAD commit. Only when I do a 'git push origin master', does it update\nthe remotes/origin/master references?\n\nI'm using git version 1.7.0.4 as is include with Ubuntu 10.04\n\nHere is my .git/config file:\n\n----8<-------------8<-------------8<-------------8<-------------8<----\n[core]\n\trepositoryformatversion = 0\n\tfilemode = true\n\tbare = false\n\tlogallrefupdates = true\n\tsafecrlf = true\n[remote \"origin\"]\n\turl = ssh://graemeg@fpgui.git.sourceforge.net/gitroot/fpgui/fpgui\n\tfetch = +refs/heads/*:refs/remotes/origin/*\n[branch \"master\"]\n\tremote = origin\n\tmerge = refs/heads/master\n[gui]\n\tgeometry = 1182x686+1573+97 387 428\n\twmstate = normal\n[push]\n\tdefault = current\n[remote \"usb\"]\n\turl = /media/flash16gig/git_repos/fpgui.git\n\tfetch = +refs/heads/*:refs/remotes/usb/*\n[branch \"v0.4_fixes\"]\n\tremote = origin\n\tmerge = refs/heads/v0.4_fixes\n[remote \"github\"]\n\turl = git@github.com:graemeg/fpGUI.git\n\tfetch = +refs/heads/*:refs/remotes/github/*\n----8<-------------8<-------------8<-------------8<-------------8<----\n\n\nRegards,\n  - Graeme -\n\n-- \nfpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal\nhttp://fpgui.sourceforge.net/\n"},{"id":"171979","messageId":"4E2D2ADE.40407@drmicha.warpmail.net","threadId":"27911","inReplyTo":"4E2D223E.8090505@gmail.com","subject":"Re: git-pull doesn't update my refs for remotes/origin/master","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2011-07-25T08:35:42Z","receivedAt":"2011-07-25T08:35:42Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Graeme Geldenhuys venit, vidit, dixit 25.07.2011 09:58:\n> Hi,\n> \n> Any idea why this happens? When I do a 'git pull origin master' while in\n> the master branch, it fetches all the latest commits, but doesn't update\n> the 'remotes/origin/master' reference. When I do a 'gitk', the\n> remotes/origin/master reference is still pointing to the old original\n> HEAD commit. Only when I do a 'git push origin master', does it update\n> the remotes/origin/master references?\n> \n> I'm using git version 1.7.0.4 as is include with Ubuntu 10.04\n> \n> Here is my .git/config file:\n...\n\nHere's my quote from git-pull's man page:\n\nA parameter <ref> without a colon is equivalent to <ref>: when\npulling/fetching, so it merges <ref> into the current branch without\n               storing the remote branch anywhere locally\n\nI.e., just do \"git pull origin\".\n\nMichael\n"},{"id":"171981","messageId":"4E2D2DF9.8000509@gmail.com","threadId":"27911","inReplyTo":"4E2D2ADE.40407@drmicha.warpmail.net","subject":"Re: git-pull doesn't update my refs for remotes/origin/master","fromName":"Graeme Geldenhuys","fromEmail":"graemeg.lists@gmail.com","sentAt":"2011-07-25T08:48:57Z","receivedAt":"2011-07-25T08:48:57Z","isPatch":false,"sender":{"key":"graemeg.lists@gmail.com","avatar":null},"body":"On 07/25/2011 10:35 AM, Michael J Gruber wrote:\n> \n> Here's my quote from git-pull's man page:\n\nClearly I need to read the help with more attention. :)\n\n\n> I.e., just do \"git pull origin\".\n\nOK, so I was trying to be too helpful. Git is clever enough, so using a\nsimplified command line is better in this case. Many thanks for the\nquick reply.\n\n\nRegards,\n  - Graeme -\n\n-- \nfpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal\nhttp://fpgui.sourceforge.net/\n"}]}