diff --git a/Bindings/Libgit2.hs b/Bindings/Libgit2.hs
--- a/Bindings/Libgit2.hs
+++ b/Bindings/Libgit2.hs
@@ -19,6 +19,7 @@
     module Bindings.Libgit2.Tree,
     module Bindings.Libgit2.Odb,
     module Bindings.Libgit2.Common,
+    module Bindings.Libgit2.Remote,
     module Bindings.Libgit2.Object) where
 import Bindings.Libgit2.Repository
 import Bindings.Libgit2.Config
@@ -39,4 +40,5 @@
 import Bindings.Libgit2.Tree
 import Bindings.Libgit2.Odb
 import Bindings.Libgit2.Common
+import Bindings.Libgit2.Remote
 import Bindings.Libgit2.Object
diff --git a/hlibgit2.cabal b/hlibgit2.cabal
--- a/hlibgit2.cabal
+++ b/hlibgit2.cabal
@@ -1,5 +1,5 @@
 Name:                hlibgit2
-Version:             0.17.0.7
+Version:             0.17.0.8
 Synopsis:            Low-level bindings to libgit2
 Description:         Bindings to libgit2 v0.17.0.
 License-file:        LICENSE
@@ -163,7 +163,8 @@
     libgit2/src
     libgit2/deps/http-parser
 
-  cc-options: -DGIT_THREADS -D_FILE_OFFSET_BITS=64
+  cc-options: -g -DGIT_THREADS -D_FILE_OFFSET_BITS=64
+  ld-options: -g
   if os(windows)
     cc-options: -DGIT_WIN32 -DWIN32 -D_DEBUG -D_WIN32_WINNT=0x0501
     c-sources:
diff --git a/libgit2/src/transport.c b/libgit2/src/transport.c
--- a/libgit2/src/transport.c
+++ b/libgit2/src/transport.c
@@ -37,7 +37,7 @@
 	}
 
 	/* still here? Check to see if the path points to a file on the local file system */
-	if ((git_path_exists(url) == 0) && git_path_isdir(url))
+	if (git_path_exists(url) && git_path_isdir(url))
 		return &git_transport_local;
 
 	/* It could be a SSH remote path. Check to see if there's a : */
