Rebase to parent branch after git-fetch in "stg pull".
authorYann Dirson <ydirson@altern.org>
Fri, 2 Feb 2007 17:18:40 +0000 (17:18 +0000)
committerCatalin Marinas <catalin.marinas@gmail.com>
Fri, 2 Feb 2007 22:44:45 +0000 (22:44 +0000)
commitd060dfd3e619d32291b872b74462a8238bf55f1b
treec79699aeb31a8c1ae3a0ff4c67bfac07813aca2c
parent8f5da35b5b53dd3c7eaf29350b3f84f1213d0ec8
Rebase to parent branch after git-fetch in "stg pull".

Previously we were just assuming that the remote from which we
just failed defined a local branch whose name was the same as the
remote def, and that this branch was the parent.  While this is true
for the most common case (branch "origin" from remote "origin"), it is
quite an unflexible assumption.

Also move the rebasing from git.pull to commands.pull.func since that
is clearly stgit-level stuff, and rename git.pull() to git.fetch() to
match default behaviour.

Signed-off-by: Yann Dirson <ydirson@altern.org>
stgit/commands/pull.py
stgit/git.py