aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-12-28 16:12:17 (GMT)
committerKaren Arutyunov <karen@codesynthesis.com>2019-12-28 16:21:49 (GMT)
commit7159420700a0f179babc2f66d782853928fa3fe7 (patch)
treede732b7d2c33816b2eadd4d9f30e04f223891b30
parenta6a7cc473bd205eb14435026a1418ec260789857 (diff)
Fix submit-git handler failing on package revisionHEADmaster
-rw-r--r--brep/handler/submit/submit-git.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/brep/handler/submit/submit-git.in b/brep/handler/submit/submit-git.in
index 8263efe..edaee7b 100644
--- a/brep/handler/submit/submit-git.in
+++ b/brep/handler/submit/submit-git.in
@@ -662,9 +662,12 @@ for i in {1..11}; do
# Finally, add the package archive to the target repository.
#
- # We copy the archive rather than move it since we may need it for a re-try.
+ # Copy the archive rather than move it since we may need it for a re-try.
+ # Make sure the project directory exists before we copy the archive into it.
+ # Note that it was removed by git-rm if it became empty.
#
a="$d/$archive"
+ run mkdir -p "$d" # Create all the parent directories as well.
run cp "$data_dir/$archive" "$a"
git_add "$tgt_dir" "${a#$tgt_dir/}"