Add mock configuration for building against the local dnf repository
[utils/utils.git] / gitar
diff --git a/gitar b/gitar
index 315bf2d..946856e 100755 (executable)
--- a/gitar
+++ b/gitar
@@ -17,25 +17,25 @@ if ! find . -type d -empty | cmp /dev/null - >/dev/null; then
 fi
 
 # Make repository.
-git-init-db >/dev/null
+git init-db >/dev/null
 
 # Make a dummy commit to hold all the files.
 function list-files-to-add {
        find . -wholename './.git' -prune -or '(' -type f -or -type l ')' -printf '%P\n'
 }
-list-files-to-add | git-update-index --add --stdin >/dev/null
-tree=$(git-write-tree)
+list-files-to-add | git update-index --add --stdin >/dev/null
+tree=$(git write-tree)
 function clean-commit {
-       GIT_AUTHOR_NAME='reproducible' GIT_AUTHOR_EMAIL='' GIT_AUTHOR_DATE='946684801 +0000' GIT_COMMITTER_NAME='reproducible' GIT_COMMITTER_EMAIL='' GIT_COMMITTER_DATE='946684801 +0000' git-commit-tree "$@" </dev/null
+       GIT_AUTHOR_NAME='reproducible' GIT_AUTHOR_EMAIL='' GIT_AUTHOR_DATE='946684801 +0000' GIT_COMMITTER_NAME='reproducible' GIT_COMMITTER_EMAIL='' GIT_COMMITTER_DATE='946684801 +0000' git commit-tree "$@" </dev/null
 }
 clean-commit $tree >.git/refs/heads/master
 
 # Pack things up nicely.
-git-repack -a >/dev/null
+git repack -a >/dev/null
 for i in pack idx; do
        mv .git/objects/pack/{pack*.$i,pack.$i}
 done
-git-prune >/dev/null
+git prune >/dev/null
 
 # Write out git repository as a Matt-style file tree.
 function write_file {