chiark / gitweb /
Do not raise an exception if no FETCH_HEAD
authorCatalin Marinas <catalin.marinas@gmail.com>
Wed, 17 Oct 2007 20:35:21 +0000 (21:35 +0100)
committerCatalin Marinas <catalin.marinas@gmail.com>
Wed, 17 Oct 2007 20:35:21 +0000 (21:35 +0100)
commitb029e3cca0ccda94c9256a4b86efc8d679235a1d
tree3a287ddf8e6819ec07ecc049b51510ce371551ca
parenta77bfa77826bd527205401e8030574e2ddee7ebe
Do not raise an exception if no FETCH_HEAD

The fetchcmd option in .git/config can be set to a command that
doesn't generate a FETCH_HEAD file (like 'git svn fetch'). With this
patch, StGIT will only warn if no FETCH_HEAD is found as it is quite
likely that the rebasecmd doesn't need one ('git svn rebase'). The
patch also modifies the 'fetch-rebase' case in pull.py so that it
re-raises the exception initially raised by git.fetch_head() as this
function has the correct information about the type of exception.

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
stgit/commands/pull.py
stgit/git.py