File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 5656 let
5757 hasIndex = builtins . pathExists ( toString src + "/.git/index" ) ;
5858 isWorktree = ( builtins . readDir ( toString src ) ) . ".git" == "regular" ;
59-
59+
6060 # Identify the .git directory and filter just the files that we need.
6161 gitDir = cleanSourceWith ( {
6262 filter = path : type :
9494 let
9595 git_content = lines ( readFile ( toString gitDir . origSrc + "/commondir" ) ) ;
9696 first_line = head git_content ;
97- in toString gitDir . origSrc + "/" + first_line + "/config"
98- else toString gitDir + "/config" ;
97+ in gitDir . origSrc + ( "/" + first_line + "/config" )
98+ else gitDir + "/config" ;
9999
100100 # We need the .gitmodules file for submoules to work.
101101 gitModulesStr = toString src + "/.gitmodules" ;
113113 lib . any ( i : ( lib . hasSuffix i path ) ) [
114114 "config" "index" "HEAD" "objects" "refs" ] ) ;
115115 } ;
116-
116+
117117 # Make a temporary dir that looks enough like the real thing for
118118 # `git ls-files --recurse-submodules` to give us an accurate list
119119 # of all the files in the index.
You can’t perform that action at this time.
0 commit comments