GNU bug report logs -
#53044
(wishlist) time-machine and ambiguous prefix SHA-1
Previous Next
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
Now the repo is becoming large, the short prefix using 6 character can
be refer to 2 Git objects. For instance,
--8<---------------cut here---------------start------------->8---
$ git show 7022eb6
error: short object ID 7022eb6 is ambiguous
hint: The candidates are:
hint: 7022eb6ea0 commit 2021-12-07 - gnu: Add notcurses.
hint: 7022eb6c9a blob
[..]
--8<---------------cut here---------------end--------------->8---
The issue is the error report by “guix time-machine” (or guix pull), for
instance,
--8<---------------cut here---------------start------------->8---
$ guix time-machine --commit=7022eb6 -- help
guix time-machine: error: Git error: ambiguous SHA1 prefix - found multiple pack entries
--8<---------------cut here---------------end--------------->8---
It could be nice that, when short prefix is ambiguous:
1) try the commit object candidate if only one
2) show a hint for the possible candidates
Cheers,
simon
This bug report was last modified 3 years and 160 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.