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 56
56
let
57
57
hasIndex = builtins . pathExists ( toString src + "/.git/index" ) ;
58
58
isWorktree = ( builtins . readDir ( toString src ) ) . ".git" == "regular" ;
59
-
59
+
60
60
# Identify the .git directory and filter just the files that we need.
61
61
gitDir = cleanSourceWith ( {
62
62
filter = path : type :
94
94
let
95
95
git_content = lines ( readFile ( toString gitDir . origSrc + "/commondir" ) ) ;
96
96
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" ;
99
99
100
100
# We need the .gitmodules file for submoules to work.
101
101
gitModulesStr = toString src + "/.gitmodules" ;
113
113
lib . any ( i : ( lib . hasSuffix i path ) ) [
114
114
"config" "index" "HEAD" "objects" "refs" ] ) ;
115
115
} ;
116
-
116
+
117
117
# Make a temporary dir that looks enough like the real thing for
118
118
# `git ls-files --recurse-submodules` to give us an accurate list
119
119
# of all the files in the index.
You can’t perform that action at this time.
0 commit comments