Commit 5d74fb78392d62c6920de466ce461c9d44340bf1

Carlos Martín Nieto 2015-05-21T06:32:29

Merge pull request #3145 from stinb/fix_cxx_build Fix error when building as C++.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/include/git2/remote.h b/include/git2/remote.h
index ab14ad4..5c43136 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -561,7 +561,7 @@ typedef struct {
 } git_fetch_options;
 
 #define GIT_FETCH_OPTIONS_VERSION 1
-#define GIT_FETCH_OPTIONS_INIT { GIT_FETCH_OPTIONS_VERSION, GIT_REMOTE_CALLBACKS_INIT, 0, 1 }
+#define GIT_FETCH_OPTIONS_INIT { GIT_FETCH_OPTIONS_VERSION, GIT_REMOTE_CALLBACKS_INIT, GIT_FETCH_PRUNE_FALLBACK, 1 }
 
 /**
  * Initializes a `git_fetch_options` with default values. Equivalent to