From e8453d6a024805d175cdf4f590036ea0ba60cc35 Mon Sep 17 00:00:00 2001 From: Denis Bilenko Date: Thu, 28 Nov 2024 17:55:32 +0100 Subject: [PATCH] always prepend /Workspace unless it already there --- libs/git/info.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/git/info.go b/libs/git/info.go index 52dade81e..d9f529f39 100644 --- a/libs/git/info.go +++ b/libs/git/info.go @@ -84,7 +84,7 @@ func FetchRepositoryInfoAPI(ctx context.Context, path vfs.Path, w *databricks.Wo } func fixResponsePath(path string) string { - if strings.HasPrefix(path, "/Users/") { + if !strings.HasPrefix(path, "/Workspace/") { return "/Workspace/" + path } return path