Commit f31cae8be9e6005148b2e5bafcb46a0d4c77b467

Sascha Cunz 2013-01-12T05:51:00

Default git_clone_options' checkout strategy to GIT_CHECKOUT_SAFE_CREATE

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/include/git2/clone.h b/include/git2/clone.h
index 9bb92eb..b546768 100644
--- a/include/git2/clone.h
+++ b/include/git2/clone.h
@@ -82,7 +82,7 @@ typedef struct git_clone_options {
 } git_clone_options;
 
 #define GIT_CLONE_OPTIONS_VERSION 1
-#define GIT_CLONE_OPTIONS_INIT {GIT_CLONE_OPTIONS_VERSION, {GIT_CHECKOUT_OPTS_VERSION, GIT_CHECKOUT_SAFE}}
+#define GIT_CLONE_OPTIONS_INIT {GIT_CLONE_OPTIONS_VERSION, {GIT_CHECKOUT_OPTS_VERSION, GIT_CHECKOUT_SAFE_CREATE}}
 
 /**
  * Clone a remote repository, and checkout the branch pointed to by the remote