chiark / gitweb /
srcdump: git: Do not include ~ files in .git
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 29 Oct 2015 00:36:46 +0000 (00:36 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 29 Oct 2015 00:36:46 +0000 (00:36 +0000)
Eg, COMMIT_EDITMSG~.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
cgi-auth-flexible.pm

index 21805cffd8057a177222a6177d3dd3113d6a2bb6..d4c740caf6a6a0c3d3f549b95818b19b222613d2 100644 (file)
@@ -482,7 +482,7 @@ sub new_verifier {
            srcdump_vcsscript => {git => "
                  git ls-files -z
                  git ls-files -z --others --exclude-from=.gitignore
-                 find .git -print0
+                 find .git ! -name \\*~ -print0
                             "},
            srcdump_byvcs => \&srcdump_byvcs,
            srcdump_novcs => \&srcdump_novcs,