Skip to content

Commit f0d8285

Browse files
committed
enhance: only supports using local bare repository as remote (#706)
Signed-off-by: leo <[email protected]>
1 parent d987653 commit f0d8285

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Models/Remote.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static bool IsValidURL(string url)
5050
return true;
5151
}
5252

53-
return Directory.Exists(url);
53+
return url.EndsWith(".git", StringComparison.Ordinal) && Directory.Exists(url);
5454
}
5555

5656
public bool TryGetVisitURL(out string url)

0 commit comments

Comments
 (0)