diff options
author | Andy Wingo | 2010-11-13 18:40:05 +0100 |
---|---|---|
committer | Andy Wingo | 2010-11-13 18:48:18 +0100 |
commit | 31a2d6ebbc2e4eb0c7cfb449103689054890ec90 (patch) | |
tree | 89f6c3ae0614a0df920e7ad03ac31deea7f583c3 | |
parent | f34e3b1c788efee937c247b3da54caee6585602d (diff) | |
download | tekuti-31a2d6ebbc2e4eb0c7cfb449103689054890ec90.tar.gz tekuti-31a2d6ebbc2e4eb0c7cfb449103689054890ec90.zip |
fix various (tekuti git) errors
* tekuti/git.scm (git-update-ref, patch-blob, munge-tree1-recursive):
Fix various errors caught by the compiler.
-rw-r--r-- | tekuti/git.scm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tekuti/git.scm b/tekuti/git.scm index 96e7383..7c946b3 100644 --- a/tekuti/git.scm +++ b/tekuti/git.scm @@ -196,7 +196,7 @@ commit) (else (pk "failed to update the ref, trying again..." refname) - (git-update-ref (git-rev-parse refname) (1- count)))))) + (git-update-ref refname proc (1- count)))))) (define (git-commit-tree tree parent message timestamp) (string-trim-both @@ -221,8 +221,9 @@ (run '() patch (list "patch" "-N" "-s" "-u" "-r" "/dev/null" orig)) (with-output-to-blob (display - (call-with-input-file (orig) - (read-delimited "" port))))))) + (call-with-input-file orig + (lambda (port) + (read-delimited "" port)))))))) ;; could leave stray comments if the post directory changes. but this is ;; probably the best that we can do, given that git does not track @@ -280,7 +281,7 @@ (define (munge-tree1-recursive dents command ldir rdir arg) (define (command-error why) - (error "munge-tree1-recursive error" why command dir arg)) + (error "munge-tree1-recursive error" why command ldir rdir arg)) (let ((dent (assoc ldir dents))) (if (and dent (not (eq? (caddr dent) 'tree))) (command-error 'not-a-tree)) |