* git-gui clone differs from command line
@ 2008-05-28 15:21 Barry Roberts
2008-05-28 23:23 ` Shawn O. Pearce
0 siblings, 1 reply; 4+ messages in thread
From: Barry Roberts @ 2008-05-28 15:21 UTC (permalink / raw)
To: git
After much mis-directed research, I finally figured out that cloning a
repo (ssh://) with git-gui doesn't work exactly like 'git clone' from
the command line. The main difference is that 'git pull' doesn't work
on master. I get the error below. Is that intentional, or are we doing
something wrong?
From ssh://blr@cvs2/var/git/iv
= [up to date] master -> origin/master
= [up to date] mbn/xtol -> origin/mbn/xtol
= [up to date] sprint2 -> origin/sprint2
= [up to date] sprint3 -> origin/sprint3
= [up to date] sprint4 -> origin/sprint4
= [up to date] xtol -> origin/xtol
You asked me to pull without telling me which branch you
want to merge with, and 'branch.master.merge' in
your configuration file does not tell me either. Please
name which branch you want to merge on the command line and
try again (e.g. 'git pull <repository> <refspec>').
See git-pull(1) for details on the refspec.
If you often merge with the same branch, you may want to
configure the following variables in your configuration
file:
branch.master.remote = <nickname>
branch.master.merge = <remote-ref>
remote.<nickname>.url = <url>
remote.<nickname>.fetch = <refspec>
See git-config(1) for details.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git-gui clone differs from command line
2008-05-28 15:21 git-gui clone differs from command line Barry Roberts
@ 2008-05-28 23:23 ` Shawn O. Pearce
2008-05-29 2:59 ` Barry Roberts
0 siblings, 1 reply; 4+ messages in thread
From: Shawn O. Pearce @ 2008-05-28 23:23 UTC (permalink / raw)
To: Barry Roberts; +Cc: git
Barry Roberts <blr@robertsr.us> wrote:
> After much mis-directed research, I finally figured out that cloning a
> repo (ssh://) with git-gui doesn't work exactly like 'git clone' from
> the command line. The main difference is that 'git pull' doesn't work
> on master. I get the error below. Is that intentional, or are we doing
> something wrong?
Bug in git-gui.
git-gui's clone feature isn't implemented in terms of git-clone.
Its implemented in terms of more primitive actions:
git init
git remote add origin
git fetch
git fetch --tags
git update-ref refs/heads/master origin/master
git checkout
however it forgets to setup the branch configuration:
> If you often merge with the same branch, you may want to
> configure the following variables in your configuration
> file:
>
> branch.master.remote = <nickname>
> branch.master.merge = <remote-ref>
> remote.<nickname>.url = <url>
> remote.<nickname>.fetch = <refspec>
>
> See git-config(1) for details.
Yea. That author of git-gui should really check git-config(1)
for detais. *ducks and hides*
I'll try to fix it tonight or tomorrow.
--
Shawn.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git-gui clone differs from command line
2008-05-28 23:23 ` Shawn O. Pearce
@ 2008-05-29 2:59 ` Barry Roberts
2008-05-29 13:40 ` Johannes Schindelin
0 siblings, 1 reply; 4+ messages in thread
From: Barry Roberts @ 2008-05-29 2:59 UTC (permalink / raw)
To: Shawn O. Pearce; +Cc: git
On Wed, 2008-05-28 at 19:23 -0400, Shawn O. Pearce wrote:
> Barry Roberts <blr@robertsr.us> wrote:
> > After much mis-directed research, I finally figured out that cloning a
> > repo (ssh://) with git-gui doesn't work exactly like 'git clone' from
> > the command line. The main difference is that 'git pull' doesn't work
> > on master. I get the error below. Is that intentional, or are we doing
> > something wrong?
>
> Bug in git-gui.
>
> git-gui's clone feature isn't implemented in terms of git-clone.
> Its implemented in terms of more primitive actions:
>
> git init
> git remote add origin
> git fetch
> git fetch --tags
> git update-ref refs/heads/master origin/master
> git checkout
>
> however it forgets to setup the branch configuration:
>
> > If you often merge with the same branch, you may want to
> > configure the following variables in your configuration
> > file:
> >
> > branch.master.remote = <nickname>
> > branch.master.merge = <remote-ref>
> > remote.<nickname>.url = <url>
> > remote.<nickname>.fetch = <refspec>
> >
> > See git-config(1) for details.
>
> Yea. That author of git-gui should really check git-config(1)
> for detais. *ducks and hides*
>
> I'll try to fix it tonight or tomorrow.
No worries. I just e-mailed out a [branch "master"] section
from .git/config from a cmd-line clone'd repo and all the Windows users
are happy. Oddly, our Linux users never saw this ;-)
Thanks,
Barry
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git-gui clone differs from command line
2008-05-29 2:59 ` Barry Roberts
@ 2008-05-29 13:40 ` Johannes Schindelin
0 siblings, 0 replies; 4+ messages in thread
From: Johannes Schindelin @ 2008-05-29 13:40 UTC (permalink / raw)
To: Barry Roberts; +Cc: Shawn O. Pearce, git
Hi,
On Wed, 28 May 2008, Barry Roberts wrote:
> No worries. I just e-mailed out a [branch "master"] section from
> .git/config from a cmd-line clone'd repo and all the Windows users are
> happy. Oddly, our Linux users never saw this ;-)
Of course, it would be even nicer if you patched git-gui yourself. It's
not like Shawn is paid full-time to work on git-gui.
Ciao,
Dscho
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-05-29 13:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-28 15:21 git-gui clone differs from command line Barry Roberts
2008-05-28 23:23 ` Shawn O. Pearce
2008-05-29 2:59 ` Barry Roberts
2008-05-29 13:40 ` Johannes Schindelin
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).