post-commit 229 B

1234567
  1. #!/bin/bash
  2. set -e
  3. gitdir=$(git rev-parse --git-dir)
  4. rm -f "$gitdir"/CHERRY_PICK_HEAD.bak
  5. mv "$gitdir"/CHERRY_PICK_HEAD{,.bak} 2>/dev/null || true
  6. git date-truncate --tips
  7. mv "$gitdir"/CHERRY_PICK_HEAD{.bak,} 2>/dev/null || true