* bug#30716: guix pull: error: Git error: unable to parse OID - contains invalid characters when COMMIT-ID is shortened
@ 2018-03-05 20:29 Björn Höfling
2018-03-17 23:04 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Björn Höfling @ 2018-03-05 20:29 UTC (permalink / raw)
To: 30716
[-- Attachment #1: Type: text/plain, Size: 1212 bytes --]
Guix pull has the wrong error message when the commit-id for the
"--commit" parameter is too short:
$>guix pull --commit=d20647722ad36024a3a0b6e1e75c1ba49b9f61d
Updating from Git repository at
'https://git.savannah.gnu.org/git/guix.git'... guix pull: error: Git
error: unable to parse OID - contains invalid characters
Instead of that error-message it should complain that the OID is too
short.
Even better, it should just accept a shortened OID and use it, as long
as it is unique.
Note: When there really is a wrong character used, this error message
is also correctly shown:
$>guix pull --commit=d20647722ad36024a3a0b6e1e75c1ba49b9f61dz
Updating from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
guix pull: error: Git error: unable to parse OID - contains invalid characters
Note: If the OID is long enough and well-formed, but just non-existent,
the error message is adequately correct:
$> guix pull --commit=d20647722ad36024a3a0b6e1e75c1ba49b9f61dd
Updating from Git repository at
'https://git.savannah.gnu.org/git/guix.git'... guix pull: error: Git
error: object not found - no match for id
(d20647722ad36024a3a0b6e1e75c1ba49b9f61dd)
Björn
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#30716: guix pull: error: Git error: unable to parse OID - contains invalid characters when COMMIT-ID is shortened
2018-03-05 20:29 bug#30716: guix pull: error: Git error: unable to parse OID - contains invalid characters when COMMIT-ID is shortened Björn Höfling
@ 2018-03-17 23:04 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2018-03-17 23:04 UTC (permalink / raw)
To: Björn Höfling; +Cc: 30716-done
Hi Björn,
Björn Höfling <bjoern.hoefling@bjoernhoefling.de> skribis:
> $>guix pull --commit=d20647722ad36024a3a0b6e1e75c1ba49b9f61dz
> Updating from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
> guix pull: error: Git error: unable to parse OID - contains invalid characters
This was actually and out-of-bounds read in Guile-Git (!), now fixed:
https://gitlab.com/guile-git/guile-git/commit/d37a40de69d727529fe2aebb6afcf362bf8e9ba7
Furthermore, ‘guix pull’ now supports short IDs provided a recent-enough
Guile-Git is available:
https://git.savannah.gnu.org/cgit/guix.git/commit/?id=95bd9f65a8ee64d17707a76aebc8720bbd961b68
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-03-17 23:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-05 20:29 bug#30716: guix pull: error: Git error: unable to parse OID - contains invalid characters when COMMIT-ID is shortened Björn Höfling
2018-03-17 23:04 ` Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).