fix starting from scratch
* tekuti/git.scm (ensure-git-repo): Actually create a master ref. Fixes startup when ~/blog.git doesn't exist.
This commit is contained in:
parent
29bc9314dd
commit
3a7ddef467
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue