From 4e2f860b22ec74ea20f776f25212c50bd77af52c Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Tue, 28 Jul 2020 22:20:00 -0500 Subject: [PATCH] Fix handling of files never previously in Git --- repo-import-loose-files.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/repo-import-loose-files.pl b/repo-import-loose-files.pl index a7bffd5..3ba38ce 100755 --- a/repo-import-loose-files.pl +++ b/repo-import-loose-files.pl @@ -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; } -- 2.25.1