Jannis Leidel  committed fb129ac

Added check_rev_options in update() to add missing origin, thanks hedberg.

  • Participants
  • Parent commits f360ec7
  • Branches default

Comments (0)

Files changed (1)

File pip/vcs/

         # Check if rev is a branch name
         origin_rev = 'origin/%s' % rev
         if origin_rev in inverse_revisions:
+            # a remote tag or branch name
             return [inverse_revisions[origin_rev]]
         elif rev in inverse_revisions:
+            # a local tag or branch name
             return [inverse_revisions[rev]]
             logger.warn("Could not find a tag or branch '%s', assuming commit." % rev)
         # First fetch changes from the default remote
         call_subprocess([self.cmd, 'fetch', '-q'], cwd=dest)
         # Then reset to wanted revision (maby even origin/master)
+        if rev_options:
+            rev_options = self.check_rev_options(rev_options[0], dest, rev_options)
         call_subprocess([self.cmd, 'reset', '--hard', '-q'] + rev_options, cwd=dest)
     def obtain(self, dest):