File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 5
5
"io"
6
6
"path"
7
7
"path/filepath"
8
- "strconv"
9
8
"strings"
10
9
11
10
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/cheggaaa/pb"
@@ -389,7 +388,7 @@ func checkForParentIgnorePatterns(givenPath string, ignoreFilePatterns []ignore.
389
388
390
389
// break out the absolute path
391
390
dir := filepath .Dir (absolutePath )
392
- pathComponents := strings .Split (dir , strconv . QuoteRune (filepath .Separator ))
391
+ pathComponents := strings .Split (dir , string (filepath .Separator ))
393
392
394
393
// We loop through each parent component attempting to find an .ipfsignore file
395
394
for index , _ := range pathComponents {
@@ -400,7 +399,7 @@ func checkForParentIgnorePatterns(givenPath string, ignoreFilePatterns []ignore.
400
399
401
400
localIgnore , ignoreErr := ignore .CompileIgnoreFile (ignorePathname )
402
401
if ignoreErr == nil && localIgnore != nil {
403
- log .Debugf ("found ignore file: %s" , dir )
402
+ log .Debugf ("found ignore file: %s" , ignorePathname )
404
403
ignoreFilePatterns = append (ignoreFilePatterns , * localIgnore )
405
404
}
406
405
}
You can’t perform that action at this time.
0 commit comments