summaryrefslogtreecommitdiff
path: root/src/transports/local.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2021-10-31 09:45:46 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2021-11-09 15:17:17 +0000
commit95117d4744cf5a66f2bcde7991a925e9852d9b1e (patch)
tree070b80735f355dbb91528da9b98432ea747ae2f3 /src/transports/local.c
parent44ec8b5cdf960cfeb66284a3cd5bdd8c14aefedf (diff)
downloadlibgit2-95117d4744cf5a66f2bcde7991a925e9852d9b1e.tar.gz
path: separate git-specific path functions from util
Introduce `git_fs_path`, which operates on generic filesystem paths. `git_path` will be kept for only git-specific path functionality (for example, checking for `.git` in a path).
Diffstat (limited to 'src/transports/local.c')
-rw-r--r--src/transports/local.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/transports/local.c b/src/transports/local.c
index 0656ea592..0983914b1 100644
--- a/src/transports/local.c
+++ b/src/transports/local.c
@@ -10,7 +10,7 @@
#include "pack-objects.h"
#include "refs.h"
#include "posix.h"
-#include "path.h"
+#include "fs_path.h"
#include "repository.h"
#include "odb.h"
#include "push.h"
@@ -226,7 +226,7 @@ static int local_connect(
t->flags = flags;
/* 'url' may be a url or path; convert to a path */
- if ((error = git_path_from_url_or_path(&buf, url)) < 0) {
+ if ((error = git_fs_path_from_url_or_path(&buf, url)) < 0) {
git_str_dispose(&buf);
return error;
}
@@ -352,7 +352,7 @@ static int local_push(
GIT_UNUSED(cbs);
/* 'push->remote->url' may be a url or path; convert to a path */
- if ((error = git_path_from_url_or_path(&buf, push->remote->url)) < 0) {
+ if ((error = git_fs_path_from_url_or_path(&buf, push->remote->url)) < 0) {
git_str_dispose(&buf);
return error;
}