summaryrefslogtreecommitdiffstatshomepage
path: root/tekuti/git.scm
diff options
context:
space:
mode:
Diffstat (limited to 'tekuti/git.scm')
-rw-r--r--tekuti/git.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/tekuti/git.scm b/tekuti/git.scm
index 09f339e..11f739c 100644
--- a/tekuti/git.scm
+++ b/tekuti/git.scm
@@ -122,7 +122,8 @@
(define (git-ls-tree treeish path)
(match-lines (git "ls-tree" treeish (or path "."))
"^(.+) (.+) (.+)\t(.+)$" (_ mode type object name)
- (list mode type object name)))
+ ;; reversed for assoc
+ (list name object type mode)))
(define (git-ls-subdirs treeish path)
(match-lines (git "ls-tree" treeish (or path "."))