diff --git a/GitUpKit/Core/GCIndex.m b/GitUpKit/Core/GCIndex.m index 942f29ec..7bcbae08 100644 --- a/GitUpKit/Core/GCIndex.m +++ b/GitUpKit/Core/GCIndex.m @@ -497,7 +497,7 @@ - (BOOL)checkoutFilesToWorkingDirectory:(NSArray*)paths fromIndex:(GC char** pathStrings = malloc(paths.count * sizeof(char*)); options.paths.strings = pathStrings; for (NSUInteger i = 0; i < paths.count; i++) { - const char* filePath = GCGitPathFromFileSystemPath(paths[i]); + const char* filePath = GCGitPathFromFileSystemPath([NSRegularExpression escapedPatternForString:paths[i]]); options.paths.strings[i] = (char*)filePath; }