kblin on IRC wanted to know how to update a bare repo with fetching. He wants to have a bare repo of samba as a mirror and clone from this mirror to avoid network traffic and to have several git repos which could all have a different branch checked out. For a better description see [1]. I suggested to use "git fetch --bare" inside the bare repo, but this doesn't work. So what I'm asking now if this is intenional behaviour or a bug, so please could someone shed some light on it? Or how is the prefered method to update a bare repo *without* pushing to it? -Peter [1]: http://wiki.samba.org/index.php/Using_Git_for_Samba_Development IRC log (unneccessary comments removed): 11:30 < kblin> how do I update a branch I cloned with --bare? 11:31 < madduck> GIT_DIR=/path/to/dir git pull > 11:31 < madduck> ? 11:31 < madduck> without the > 11:32 < kblin> and for remote repositories, I'd use a URL? 11:37 < madduck> uh, you can't reallly "update" remote repositories in that sense 11:37 < madduck> what are you trying to do? 11:37 < madduck> let's have more info! 11:51 < kblin> madduck: I'm trying to follow http://wiki.samba.org/index.php/Using_Git_for_Samba_Development 11:52 < kblin> madduck: basically, I want to have a --bare repository that mirrors the remote repository and have a couple of working repositories for the different branches 11:57 < siprbaum> kblin: I think "git --bare fetch" inside your bare repo will solve your problem [...] 12:01 < kblin> siprbaum: git --bare fetch doesn't seem to fetch anything new either 12:01 < siprbaum> perhaps there isn't anything new to fetch? 12:02 < siprbaum> but i'm just guessing here and reading the manpage (git) suggested that git --bare fetch _could_ work 12:02 < kblin> siprbaum: that'd surpise me. I've got a clone without the --bare, and that has a new commit [...] 12:14 < siprbaum> kblin: and you are right. i just tried to fetch inside a bare repo and it doesn't work - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Con Kolivas | Re: [ANNOUNCE] RSDL completely fair starvation free interactive cpu scheduler |
| David Miller | [GIT]: Networking |
| Alan Stern | Re: [linux-pm] Re: Hibernation considerations |
git: | |
| Junio C Hamano | Re: git-diff on touched files: bug or feature? |
| Johannes Schindelin | Re: MinGW port - initial work uploaded |
| Kay Sievers | Re: Rss produced by git is not valid xml? |
| Marek Zawirski | [EGIT PATCH 00/31] Push GUI, GUI improvements, various jgit stuff |
| frantisek holop | nptd regression in 4.2 |
| Thilo Pfennig | OpenBSD project goals |
| Luca Dell'Oca | Authenticate squid in Active Directory |
| Richard Stallman | Real men don't attack straw men |
| Julius Volz | [PATCHv3 00/24] Add first IPv6 support to IPVS |
| Paul Moore | [RFC PATCH v4 01/14] netlabel: Remove unneeded in-kernel API functions |
| David Miller | Re: [PATCH net-2.6.25 1/10][NETNS][FRAGS]: Move ctl tables around. |
| Wenji Wu | Re: RE: A Linux TCP SACK Question |
