From 57bd7b717ba830753b5c6d82bb84d38047dce637 Mon Sep 17 00:00:00 2001 From: Olof Johansson Date: Tue, 29 Jan 2013 08:22:05 +0100 Subject: [PATCH] Fix: GitError when using repo info -d If a workspace is initialised with: repo init -u git://path/to/manifest -b manifest-branch and the default.xml specifies the default revision as `other-branch`, running `repo info -d` results in a GitError: fatal: bad revision 'refs/remotes/m/other-branch..' The repo info command uses the default revision to build the symlink to the remote revision which is passed to the `git rev-list` command. This is incorrect; the manifest's branch name should be used. Change-Id: Ibae5b91869848276785facfaef433e38d49fd726 --- subcmds/info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subcmds/info.py b/subcmds/info.py index d2d4f5e9..a6eba889 100644 --- a/subcmds/info.py +++ b/subcmds/info.py @@ -111,7 +111,7 @@ class Info(PagedCommand): if not self.opt.local: project.Sync_NetworkHalf(quiet=True, current_branch_only=True) - logTarget = R_M + self.manifest.default.revisionExpr + logTarget = R_M + self.manifest.manifestProject.config.GetBranch("default").merge bareTmp = project.bare_git._bare project.bare_git._bare = False