git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] fix interactive rebase short SHA-1 collision bug
@ 2013-08-12  4:07 Eric Sunshine
  2013-08-12  4:07 ` [PATCH 1/3] t3404: restore specialized rebase-editor following commentchar test Eric Sunshine
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Eric Sunshine @ 2013-08-12  4:07 UTC (permalink / raw)
  To: git
  Cc: Eric Sunshine, Junio C Hamano, David, Diogo de Campos,
	Matthieu Moy, Yann Dirson

This series addresses a bug [1][2] which can manifest during interactive
rebase when the prefix of the new SHA-1 of an edited commit is shared
with the abbreviated SHA-1 of a subsequent commit in the 'todo' list.
When rebase attempts to process the subsequent command, it dies with a
"short SHA1 badbeef is ambiguous" error.

patch 1: fix a problem in the interactive rebase test suite which can
    make subsequent tests fail

patch 2: add a test demonstrating the short SHA-1 collision bug

patch 3: fix the bug (this patch is from Junio [3] but augmented also to
    fix up "rebase --edit-todo")

[1]: http://thread.gmane.org/gmane.comp.version-control.git/229091
[2]: http://thread.gmane.org/gmane.comp.version-control.git/232012
[3]: http://thread.gmane.org/gmane.comp.version-control.git/229091/focus=229120

Eric Sunshine (2):
  t3404: restore specialized rebase-editor following commentchar test
  t3404: rebase: interactive: demonstrate short SHA-1 collision

Junio C Hamano (1):
  rebase: interactive: fix short SHA-1 collision

 git-rebase--interactive.sh    | 30 ++++++++++++++++++++++++++++++
 t/t3404-rebase-interactive.sh | 18 ++++++++++++++++++
 2 files changed, 48 insertions(+)

-- 
1.8.4.rc2.460.ga591f4a

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-08-12  7:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-12  4:07 [PATCH 0/3] fix interactive rebase short SHA-1 collision bug Eric Sunshine
2013-08-12  4:07 ` [PATCH 1/3] t3404: restore specialized rebase-editor following commentchar test Eric Sunshine
2013-08-12  6:28   ` Junio C Hamano
2013-08-12  7:29     ` Eric Sunshine
2013-08-12  4:07 ` [PATCH 2/3] t3404: rebase: interactive: demonstrate short SHA-1 collision Eric Sunshine
2013-08-12  6:31   ` Junio C Hamano
2013-08-12  7:40     ` Eric Sunshine
2013-08-12  4:07 ` [PATCH 3/3] rebase: interactive: fix " Eric Sunshine

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 NNTP newsgroup(s).