Skip to content

Instantly share code, notes, and snippets.

@aroben
Created June 12, 2012 17:02
Show Gist options
  • Save aroben/2918713 to your computer and use it in GitHub Desktop.
Save aroben/2918713 to your computer and use it in GitHub Desktop.
Fix gitignore spaces parsing in libgit2
diff --git a/src/ignore.c b/src/ignore.c
index fc6194b..f2d08f5 100644
--- a/src/ignore.c
+++ b/src/ignore.c
@@ -28,6 +28,8 @@ static int parse_ignore_file(
GITERR_CHECK_ALLOC(match);
}
+ match->flags = GIT_ATTR_FNMATCH_ALLOWSPACE;
+
if (!(error = git_attr_fnmatch__parse(
match, ignores->pool, context, &scan)))
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment