lorikeet-heimdal: specify hash to heimdal import, rather than using the date
authorAndrew Bartlett <abartlet@samba.org>
Wed, 19 Feb 2014 09:06:57 +0000 (22:06 +1300)
committerStefan Metzmacher <metze@samba.org>
Wed, 29 Apr 2020 09:07:57 +0000 (11:07 +0200)
apply_heimdal.sh

index 319e4e31c915827f68c156a31ec89b6620ea9b81..1b45dc79064210ec2b7175311954dfb40eb0af91 100755 (executable)
@@ -1,12 +1,12 @@
 #!/bin/bash
 
-[ $# == 1 ] || {
+[ $# == 2 ] || {
     echo "Usage: apply_heimdal.sh <lorikeet_path>"
     exit 1
 }
 
 LORIKEET_PATH="$1"
-
+IMPORT_HASH="$2"
 S4PATH="$PWD"
 
 pushd $LORIKEET_PATH || exit 1
@@ -34,7 +34,7 @@ try_patch() {
     popd || exit 1
 }
 
-commits="$(git log --pretty=oneline --reverse --since='1 months ago' heimdal | cut -d' ' -f1)"
+commits="$(git log --pretty=oneline --reverse $IMPORT_HASH..origin/master heimdal | cut -d' ' -f1)"
 for c in $commits; do
     git log $c -1
     echo -n "Try apply? [Y/n] "