Fix handling of files never previously in Git
authorJacob Bachmeyer <jcb@gnu.org>
Wed, 29 Jul 2020 03:20:00 +0000 (22:20 -0500)
committerJacob Bachmeyer <jcb@gnu.org>
Wed, 29 Jul 2020 03:20:00 +0000 (22:20 -0500)
repo-import-loose-files.pl

index a7bffd51bfc45d9b44c17bf6524ed9d87c8d6546..3ba38ceb7e3b29fab3a6df3a8000630801708d10 100755 (executable)
@@ -162,6 +162,7 @@ sub store_revision_in_git {
   push @commit_opts, '-m', $message;
 
   cmd qw/cp -fp/, ($Verbose ? '-v' : ()), $source, $target;
+  cmd qw/git add --/, $target;
   cmd qw/git commit/, @commit_opts, '--', $target;
 }