From 7159420700a0f179babc2f66d782853928fa3fe7 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 28 Dec 2019 19:12:17 +0300 Subject: Fix submit-git handler failing on package revision --- brep/handler/submit/submit-git.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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/}" -- cgit v1.1