changeset 1561:6074fffd8a1d feature_1136

No, a bare repo is better
author Chris Cannam
date Thu, 14 Jan 2016 12:03:06 +0000
parents 2c67e414ab46
children 3107eacaddf7
files extra/soundsoftware/export-git.sh
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/extra/soundsoftware/export-git.sh	Thu Jan 14 10:54:56 2016 +0000
+++ b/extra/soundsoftware/export-git.sh	Thu Jan 14 12:03:06 2016 +0000
@@ -78,7 +78,6 @@
     authormap="$authordir/authormap_$reponame"
 
     git_repodir="$gitdir/$reponame"
-    git_workdir="$gitdir/$reponame.workdir"
 
     if [ ! -f "$authormap" ]; then
 	echo "No authormap file was created for repo $reponame, skipping"
@@ -96,14 +95,14 @@
     fi
     
     if [ ! -d "$git_repodir" ]; then
-	git init --separate-git-dir="$git_repodir" "$git_workdir"
+	git init --bare "$git_repodir"
     fi
 
     echo
     echo "About to run fast export for repo $reponame..."
     
     (
-	cd "$git_workdir"
+	cd "$git_repodir"
 
         # Force is necessary because git-fast-import (or git) can't handle
         # branches having more than one head ("Error: repository has at