On Sat, Sep 15, 2018 at 12:10:34PM +0200, Marius Bakke wrote: > This makes it play nicely with worktrees. > > * guix/git-download.scm (git-file-list): Use REPOSITORY-WORKING-DIRECTORY to > locate checkout. Rename from "top" to "workdir". Thanks! > --- > > Notes: > Guix, > > This fixes (current-guix) for me in a worktree. Testing needed on other git > setups! To clarify what this fixes, I tried building a fresh worktree from scratch without your patch and it crashed: ------ LOAD gnu/tests/install.scm Backtrace: In srfi/srfi-1.scm: 592:29 19 (map1 (#< type: # ?)) 592:29 18 (map1 (#< type: # ?)) 592:29 17 (map1 (#< type: # ?)) 592:29 16 (map1 (#< type: # ?)) 592:17 15 (map1 (#< type: # ?)) In ice-9/eval.scm: 196:43 14 (_ #(#(#(#) ?) ?)) 293:34 13 (_ #(#(#(#) ?) ?)) 293:34 12 (_ #(#(#(# ?)) ?)) 174:20 11 (_ #(#(#(# ?)) ?)) 177:49 10 (lp (# ?)) 177:49 9 (lp (# ?)) 177:49 8 (lp (# ?)) 177:32 7 (lp (#)) In unknown file: 6 (force #) In ice-9/eval.scm: 293:34 5 (_ #(#(# ?))) In ice-9/boot-9.scm: 829:9 4 (catch git-error # ?) In ice-9/eval.scm: 293:34 3 (_ #(#(# "/ho?"))) 293:34 2 (_ #(#(#(#(#(#(#(#(#(#(#(#) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?)) 159:9 1 (_ #(#(#(#(#(#(#(#(#(#(#(#) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?)) In unknown file: 0 (string-drop "/home/leo/tmp/mytest" 35) ERROR: In procedure string-drop: Value out of range 0 to 20: 35 ------ Your patch avoids this crash, which I was stymied by a couple days ago! Has it always been there? I've been using Guix worktrees for a while.