continue
}
- execute git branch -D "quilt/$name"
- execute git checkout -b "quilt/$name" "$rbase" || sh -i || {
+ git show-ref --quiet --verify "refs/heads/quilt/$name" ||
+ execute git branch "quilt/$name" "$rbase" || sh -i || {
+ [ -f "$sfile.orig" ] &&
+ mv -f "$sfile.orig" "$sfile"
+ exit 1
+ }
+ execute git checkout "quilt/$name" || sh -i || {
[ -f "$sfile.orig" ] &&
mv -f "$sfile.orig" "$sfile"
exit 1
}
+ execute git reset --hard "$rbase" || sh -i || {
+ [ -f "$sfile.orig" ] &&
+ mv -f "$sfile.orig" "$sfile"
+ exit 1
+ }
+
author=$(grep -v '^#' ../real_control | awk -F ' ' '$3=="'"$name"'" { printf("%s", $1); }' | sed 's/,.*$//')
execute git quiltimport --author "$author" --patches "../quilt/$name" || sh -i || {
[ -f "$sfile.orig" ] &&