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

git-pull doesn't update my refs for remotes/origin/master

From
GGGraeme Geldenhuys <graemeg.lists@gmail.com>
Date
Jul 25, 2011, 07:58 UTC
Message-ID
<4E2D223E.8090505@gmail.com>
Hi,

Any idea why this happens? When I do a 'git pull origin master' while in the master branch, it fetches all the latest commits, but doesn't update the 'remotes/origin/master' reference. When I do a 'gitk', the remotes/origin/master reference is still pointing to the old original HEAD commit. Only when I do a 'git push origin master', does it update the remotes/origin/master references?

I'm using git version 1.7.0.4 as is include with Ubuntu 10.04
Here is my .git/config file:
----8<-------------8<-------------8<-------------8<-------------8<----
[core]
	repositoryformatversion = 0
	filemode = true
	bare = false
	logallrefupdates = true
	safecrlf = true
[remote "origin"]
	url = ssh://graemeg@fpgui.git.sourceforge.net/gitroot/fpgui/fpgui
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master
[gui]
	geometry = 1182x686+1573+97 387 428
	wmstate = normal
[push]
	default = current
[remote "usb"]
	url = /media/flash16gig/git_repos/fpgui.git
	fetch = +refs/heads/*:refs/remotes/usb/*
[branch "v0.4_fixes"]
	remote = origin
	merge = refs/heads/v0.4_fixes
[remote "github"]
	url = git@github.com:graemeg/fpGUI.git
	fetch = +refs/heads/*:refs/remotes/github/*
----8<-------------8<-------------8<-------------8<-------------8<----
Regards,
  - Graeme -
-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
Next: Michael J Gruber
Message 1 of 3 in “git-pull doesn't update my refs for remotes/origin/master”
  1. Graeme GeldenhuysJul 25, 2011
  2. Michael J GruberJul 25, 2011
  3. Graeme GeldenhuysJul 25, 2011

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.