GNU bug report logs - #53044
(wishlist) time-machine and ambiguous prefix SHA-1

Previous Next

Package: guix;

Reported by: zimoun <zimon.toutoune <at> gmail.com>

Date: Thu, 6 Jan 2022 09:33:02 UTC

Severity: wishlist

To reply to this bug, email your comments to 53044 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#53044; Package guix. (Thu, 06 Jan 2022 09:33:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to zimoun <zimon.toutoune <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 06 Jan 2022 09:33:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: Bug Guix <bug-guix <at> gnu.org>
Subject: (wishlist) time-machine and ambiguous prefix SHA-1
Date: Thu, 06 Jan 2022 10:27:00 +0100
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 2 years and 350 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.