Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python traceback during "repo prune" #9

Closed
GoogleCodeExporter opened this issue Apr 8, 2015 · 4 comments
Closed

Python traceback during "repo prune" #9

GoogleCodeExporter opened this issue Apr 8, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

Reported by Garret Pick <pickgr@pv.com> on Thu Feb 26 11:05:35 PST 2009
Source: JIRA REPO-9

From 
http://groups.google.com/group/repo-discuss/browse_thread/thread/20a4f3fb82f49cf
7
An error I saw from repo prune.  Note that the second time I ran it, it seemed
to work fine.

$ repo prune
Pending Branches

project bionic/
Traceback (most recent call last):
 File "/home/pickgr/master/.repo/repo/main.py", line 202, in <module>
   _Main(sys.argv[1:])
 File "/home/pickgr/master/.repo/repo/main.py", line 186, in _Main
   repo._Run(argv)
 File "/home/pickgr/master/.repo/repo/main.py", line 96, in _Run
   cmd.Execute(copts, cargs)
 File "/home/pickgr/.repo/repo/subcmds/prune.py", line 52, in Execute
 File "/home/pickgr/master/.repo/repo/project.py", line 126, in
commits
   '--')
 File "/home/pickgr/master/.repo/repo/project.py", line 1174, in
rev_list
   p.stderr))
error.GitError: platform/bionic rev-list ('--abbrev=8', '--abbrev-
commit', '--pr

$
$
$ repo prune
$ git status
# Not currently on any branch.
nothing to commit (working directory clean)
$

Original issue reported on code.google.com by code-rev...@gtempaccount.com on 24 Sep 2009 at 9:09

@GoogleCodeExporter
Copy link
Author

Comment by Shawn Pearce <sop@google.com> on Mon Mar 02 12:20:53 PST 2009

This is caused by a change to git branch -d's output.

Prior to Git version v1.6.1-rc3~5 the output of bit branch matched:

  Deleted branch (.*)\.

where the subgroup grabbed the branch name.  In v1.6.1-rc3~5 (aka
a126ed0a01e265d7f3b2972a34e85636e12e6d34) Brandon Casey changed the output to
include the SHA-1 of the branch name, now matching the pattern:

  Deleted branch (.*) \([0-9a-f]*\)\.

That's what I get for making repo script against porcelain and not plumbing.

Original comment by code-rev...@gtempaccount.com on 24 Sep 2009 at 9:10

@GoogleCodeExporter
Copy link
Author

Comment by Shawn Pearce <sop@google.com> on Mon Mar 02 12:38:54 PST 2009

Fixed by https://review.source.android.com/9047

Original comment by code-rev...@gtempaccount.com on 24 Sep 2009 at 9:10

@GoogleCodeExporter
Copy link
Author

Update by Shawn Pearce <sop@google.com> on Mon Mar 02 12:38:54 PST 2009

Original comment by code-rev...@gtempaccount.com on 24 Sep 2009 at 9:10

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Update by Shawn Pearce <sop@google.com> on Mon Mar 02 12:58:00 PST 2009

Fixed in version 1.6.1.

Original comment by code-rev...@gtempaccount.com on 24 Sep 2009 at 9:10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant