Commit 3e22bb71f2ca6f632059e53414dd19fb0349c482

Josh Leeb-du Toit 2016-09-28T14:45:18

Update submodule update opts init as per code review Update the `GIT_SUBMODULE_UPDATE_OPTIONS_INIT` definition with the correct values after removing `clone_checkout_strategy` in `git_submodule_update_options`.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/include/git2/submodule.h b/include/git2/submodule.h
index ab5d7b6..b2b3039 100644
--- a/include/git2/submodule.h
+++ b/include/git2/submodule.h
@@ -157,7 +157,7 @@ typedef struct git_submodule_update_options {
 #define GIT_SUBMODULE_UPDATE_OPTIONS_INIT \
 	{ GIT_SUBMODULE_UPDATE_OPTIONS_VERSION, \
 		{ GIT_CHECKOUT_OPTIONS_VERSION, GIT_CHECKOUT_SAFE }, \
-	GIT_FETCH_OPTIONS_INIT, GIT_CHECKOUT_SAFE }
+	GIT_FETCH_OPTIONS_INIT, 1 }
 
 /**
  * Initializes a `git_submodule_update_options` with default values.