diff options
author | Andy Wingo | 2008-04-22 11:29:18 +0200 |
---|---|---|
committer | Andy Wingo | 2008-04-22 11:29:18 +0200 |
commit | 3a7ddef4671260822d81d7052cadb5b1479ad0b0 (patch) | |
tree | 16bf3cc75276aa28ec3a38bbd2ab906835a6f61f | |
parent | 29bc9314ddff00f2d37d522bf10246b614c4e90d (diff) | |
download | tekuti-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.
-rw-r--r-- | tekuti/git.scm | 5 |
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) |