remote: add missing include git2/remote.h Otherwise we get an incomplete type error, since git_remote_callbacks isn't declared yet.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
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"