Commit 7e9f78b5fee2d8f56711a587c35fcba10d370547

Michael Schubert 2012-08-04T15:22:38

remote: add missing include git2/remote.h Otherwise we get an incomplete type error, since git_remote_callbacks isn't declared yet.

diff --git a/src/fetch.c b/src/fetch.c
index f8f853f..d96ac77 100644
--- a/src/fetch.c
+++ b/src/fetch.c
@@ -5,7 +5,6 @@
  * a Linking Exception. For full terms see the included COPYING file.
  */
 
-#include "git2/remote.h"
 #include "git2/oid.h"
 #include "git2/refs.h"
 #include "git2/revwalk.h"
diff --git a/src/remote.c b/src/remote.c
index 948da12..adbfdc4 100644
--- a/src/remote.c
+++ b/src/remote.c
@@ -5,7 +5,6 @@
  * a Linking Exception. For full terms see the included COPYING file.
  */
 
-#include "git2/remote.h"
 #include "git2/config.h"
 #include "git2/types.h"
 
diff --git a/src/remote.h b/src/remote.h
index 5083b99..67933a3 100644
--- a/src/remote.h
+++ b/src/remote.h
@@ -7,6 +7,8 @@
 #ifndef INCLUDE_remote_h__
 #define INCLUDE_remote_h__
 
+#include "git2/remote.h"
+
 #include "refspec.h"
 #include "transport.h"
 #include "repository.h"