summaryrefslogtreecommitdiffstatshomepage
path: root/tekuti/git.scm
diff options
context:
space:
mode:
authorGravatar Andy Wingo2008-04-22 11:29:18 +0200
committerGravatar Andy Wingo2008-04-22 11:29:18 +0200
commit3a7ddef4671260822d81d7052cadb5b1479ad0b0 (patch)
tree16bf3cc75276aa28ec3a38bbd2ab906835a6f61f /tekuti/git.scm
parent29bc9314ddff00f2d37d522bf10246b614c4e90d (diff)
downloadtekuti-3a7ddef4671260822d81d7052cadb5b1479ad0b0.tar.gz
tekuti-3a7ddef4671260822d81d7052cadb5b1479ad0b0.zip
fix starting from scratch
* tekuti/git.scm (ensure-git-repo): Actually create a master ref. Fixes startup when ~/blog.git doesn't exist.
Diffstat (limited to 'tekuti/git.scm')
-rw-r--r--tekuti/git.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/tekuti/git.scm b/tekuti/git.scm
index 35b3b27..e8793a4 100644
--- a/tekuti/git.scm
+++ b/tekuti/git.scm
@@ -120,7 +120,10 @@
(begin
(mkdir d)
(chdir d)
- (git "init"))
+ (git "init")
+ (git "update-ref" "refs/heads/master"
+ (git-commit-tree (string-trim-both (git* '("mktree") #:input ""))
+ #f "initial commit" #f)))
(chdir d))))
(define (git-ls-tree treeish path)