From: Jacob Bachmeyer Date: Wed, 29 Jul 2020 03:20:00 +0000 (-0500) Subject: Fix handling of files never previously in Git X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4e2f860b22ec74ea20f776f25212c50bd77af52c;p=gatekeeper.git Fix handling of files never previously in Git --- 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; }