Testing a post-merge hooks script for git -


i new git, , have following doubt:

how can test if post-merge script doing duty, without having other people pushing fake changes repository? (is post-merge correct script, if want called every time pull repository , modifications found? executed if pull exits error, example because of conflicts?)

i ask question related this other problem facing.

i rather test post-merger hook pushing fake changes clone of actual repo.
register hook in clone same way setup in current repo.

that way, don't pollute original repo fake history have clean.


if want avoid clone, can:

  • dedicate branch merges
  • push after having changed user.name , user.email (git config user.name xxx), in order simulate other authors , committers merges.

once test merges done on branch, can delete enough.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -