# stg pull doesn't pull anymore

3 messages from 2007-02-03 to 2007-02-03. Participants: Pavel Roskin, Yann Dirson.
Thread: https://gitlist.dev/t/6633

## Pavel Roskin, 2007-02-03 03:00

Subject: stg pull doesn't pull anymore
Message-ID: <1170471647.9733.24.camel@dv>
URL: https://gitlist.dev/e/1170471647.9733.24.camel%40dv

```
Hello!

I have noticed that "stg pull" doesn't merge the latest changes anymore.
It fetches the new branches, but the HEAD remains unchanged.

I'm using the current version of git and StGIT (mast branches of both).
I don't have any local patches.

I've checked the log of StGIT changes and I see that StGIT does "git
fetch" instead of "git pull" now.  I don't have a .gitconfig file, so I
should get the new default behavior.  I don't see any changes to StGIT
documentations.

The problem is observed with the git repository.  It stays at
e4b0e4ab8ee68df0fa99100640ed5cb54b736141 although
refs/remotes/origin/master has advanced to
aacd404e775ad73188ae9157041d7cc530d5625c.

My guesses what may be happening:

1) "stg pull" is intended not to merge the changes.  In this case, I
expect changes to the documentation and a new command that would merge
the changes.

2) The there is a bug in the implementation of stgit.pull-does-rebase.
We are merging the local refs/heads/master instead of the one from
FETCH_HEAD.  This suspicion is confirmed by the fact that StGIT sources
have no references to FETCH_HEAD, and the only git command that reads it
is git-pull, which we are not calling by default now.

-- 
Regards,
Pavel Roskin

```

## Pavel Roskin, 2007-02-03 03:44

Subject: Re: stg pull doesn't pull anymore
Message-ID: <1170474278.26823.11.camel@dv>
URL: https://gitlist.dev/e/1170474278.26823.11.camel%40dv
In-Reply-To: <1170471647.9733.24.camel@dv>

```
Hello again!

Sorry for postscript.

The failure of test 4 in t1200-push-modified.sh (that's the StGIT
testsuite) is clearly related to the problem.  The test passes if I
change make test-lib.sh copy my .gitconfig to the new $HOME.  And
my .gitconfig is:

[stgit]
        pullcmd = git-pull
        pull-does-rebase = no

"stg pull" in test 3 doesn't pull anything, and that's why test 4
doesn't produce an expected failure.

Now I'm quite confident that stgit.pull-does-rebase=yes is not working
the way it should.

-- 
Regards,
Pavel Roskin

```

## Yann Dirson, 2007-02-03 10:16

Subject: Re: stg pull doesn't pull anymore
Message-ID: <20070203101622.GI5362@nan92-1-81-57-214-146.fbx.proxad.net>
URL: https://gitlist.dev/e/20070203101622.GI5362%40nan92-1-81-57-214-146.fbx.proxad.net
In-Reply-To: <1170474278.26823.11.camel@dv>

```
On Fri, Feb 02, 2007 at 10:44:38PM -0500, Pavel Roskin wrote:
> Now I'm quite confident that stgit.pull-does-rebase=yes is not working
> the way it should.

You're right.  I have mistakenly assumed the branch.*.merge parameter
points to the local ref.  I'll fix it so it takes that as a remote
ref.  Not quite sure how to behave when more than one Fetch: line
reference a single remote branch, though.

Best regards,
-- 
Yann.

```
