* how to properly update dumb-hosted repo (using rsync..?)
@ 2007-12-17 23:11 Stephen Sinclair
2007-12-17 23:46 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Sinclair @ 2007-12-17 23:11 UTC (permalink / raw)
To: git
Hello!
I have a question related to dumb transports (i.e., http hosting without git).
I have a shell-accessible server which on which I have installed git,
but it is not a web server. So to make my git repo public I have put
the repo on a web server which I cannot install git on. I have made a
post-update hook on my server repo which runs git-update-server-info
and then uses rsync to copy the repo over to the public web server.
So far so good. I am able to clone the http-hosted repo and push
changes to my private server which then get copied over to the http
repo.
However, after a git-push/rsync operation, I typed git-pull to try and
pull the changes I'd just made, and got the following:
-------------------
$ git-pull
Warning: No merge candidate found because value of config option
"branch.master.merge" does not match any remote branch fetched.
No changes.
-------------------
However I haven't done any branching in this cloned repo, it is
immediately after a git-clone from the web server.
My .git/config basically looks like this, minus the "core" section:
-------------------
[remote "origin"]
url = http://my.server.com/git/project.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
-------------------
Which seems fine to me...
Any ideas?
This is of course only for people who want to clone my web-hosted repo
and then be able to subsequently git-pull my updates.
thanks,
Steve
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: how to properly update dumb-hosted repo (using rsync..?)
2007-12-17 23:11 how to properly update dumb-hosted repo (using rsync..?) Stephen Sinclair
@ 2007-12-17 23:46 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2007-12-17 23:46 UTC (permalink / raw)
To: Stephen Sinclair; +Cc: git
"Stephen Sinclair" <radarsat1@gmail.com> writes:
> $ git-pull
> Warning: No merge candidate found because value of config option
> "branch.master.merge" does not match any remote branch fetched.
> No changes.
> -------------------
>
> However I haven't done any branching in this cloned repo, it is
> immediately after a git-clone from the web server.
>
> My .git/config basically looks like this, minus the "core" section:
>
> -------------------
> [remote "origin"]
> url = http://my.server.com/git/project.git
> fetch = +refs/heads/*:refs/remotes/origin/*
> [branch "master"]
> remote = origin
> merge = refs/heads/master
> -------------------
>
> Which seems fine to me...
> Any ideas?
A dumb question. does "git ls-remote origin" show what you expect to be
there? Specifically, does refs/heads/master exist?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-12-17 23:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-17 23:11 how to properly update dumb-hosted repo (using rsync..?) Stephen Sinclair
2007-12-17 23:46 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).