git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Bypassing hooks while cherry-picking
@ 2016-03-01 11:01 greg0ire
  2016-03-01 20:40 ` [PATCH] cherry-pick: add --no-verify option Kevin Daudt
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: greg0ire @ 2016-03-01 11:01 UTC (permalink / raw)
  To: git

Hello,

using git 2.1.4 here, and it seems there is no option to bypass 
pre-commit hooks while cherry-picking, while git commit provides a 
--no-verify option. I ended up doing this to disable hooks while cherry 
picking :

     test -f "$GIT_DIR"/CHERRY_PICK_HEAD && exit 0

Wouldn't it be best to add the --no-verify option to cherry-pick too?
I had a conflict when cherry-picking the commit, maybe this does not 
happen otherwise?

Steps to reproduce :

1. create a pre-commit hook
2. create a commit that fails the hook, and bypass the hook
3. checkout another branch
4. might be optional : create a conflicting change with the previously 
created commit
5. cherry-pick the commit
6. might be optional : solve the conflick and use git cherry-pick --continue

Regards,

--
greg0ire

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

end of thread, other threads:[~2016-03-03 23:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-01 11:01 Bypassing hooks while cherry-picking greg0ire
2016-03-01 20:40 ` [PATCH] cherry-pick: add --no-verify option Kevin Daudt
2016-03-02  0:33   ` Eric Sunshine
2016-03-02 11:58   ` [PATCH v2] " Kevin Daudt
2016-03-03 21:17 ` Bypassing hooks while cherry-picking Kevin Daudt
2016-03-03 22:18   ` Grégoire PARIS
2016-03-03 21:30 ` Junio C Hamano
2016-03-03 22:20   ` Grégoire PARIS
2016-03-03 22:55     ` Junio C Hamano
2016-03-03 23:18       ` Grégoire PARIS

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.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).