From 92c7d7ff8da83aea6f5a5badc7727ac80cf6f6fe Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Sun, 30 Oct 2022 22:25:53 -0500 Subject: [PATCH] bin/newgit: Simplify parameters --- bin/newgit | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/newgit b/bin/newgit index 2383f47..67df22f 100755 --- a/bin/newgit +++ b/bin/newgit @@ -3,16 +3,16 @@ # Create a new bare git respository if [ -z $1 ]; then - echo "usage: $FUNCNAME path/to project-name.git" + echo "usage: $FUNCNAME path/to/project-name.git" else - gitdir="$1/$2" + gitdir="$1" mkdir $gitdir - pushd $gitdir + pushd $gitdir > /dev/null git --bare init git --bare update-server-info mv hooks/post-update.sample hooks/post-update chmod a+x hooks/post-update touch git-daemon-export-ok - popd + popd > /dev/null fi -- 2.45.2