git-recap 0.1.2__py3-none-any.whl → 0.1.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- git_recap/providers/url_fetcher.py +4 -3
- {git_recap-0.1.2.dist-info → git_recap-0.1.3.dist-info}/METADATA +1 -1
- {git_recap-0.1.2.dist-info → git_recap-0.1.3.dist-info}/RECORD +6 -6
- {git_recap-0.1.2.dist-info → git_recap-0.1.3.dist-info}/WHEEL +1 -1
- {git_recap-0.1.2.dist-info → git_recap-0.1.3.dist-info}/licenses/LICENSE +0 -0
- {git_recap-0.1.2.dist-info → git_recap-0.1.3.dist-info}/top_level.txt +0 -0
|
@@ -36,13 +36,13 @@ class URLFetcher(BaseFetcher):
|
|
|
36
36
|
)
|
|
37
37
|
self.url = self._normalize_url(url)
|
|
38
38
|
self.temp_dir = None
|
|
39
|
-
self._validate_url()
|
|
39
|
+
# self._validate_url()
|
|
40
40
|
self._clone_repo()
|
|
41
41
|
|
|
42
42
|
def _normalize_url(self, url: str) -> str:
|
|
43
43
|
"""Normalize the Git URL to ensure consistent format."""
|
|
44
44
|
url = url.strip()
|
|
45
|
-
if not url.endswith('.git'):
|
|
45
|
+
if not url.endswith('.git') and "_git" not in url:
|
|
46
46
|
url += '.git'
|
|
47
47
|
if not any(url.startswith(proto) for proto in ('http://', 'https://', 'git://', 'ssh://')):
|
|
48
48
|
url = f'https://{url}'
|
|
@@ -116,7 +116,8 @@ class URLFetcher(BaseFetcher):
|
|
|
116
116
|
|
|
117
117
|
match = self.GIT_URL_PATTERN.match(self.url)
|
|
118
118
|
if not match:
|
|
119
|
-
|
|
119
|
+
repo_name = self.url.split('/')[-1]
|
|
120
|
+
return [repo_name]
|
|
120
121
|
|
|
121
122
|
repo_name = match.group(2).split('/')[-1]
|
|
122
123
|
if repo_name.endswith(".git"):
|
|
@@ -6,9 +6,9 @@ git_recap/providers/azure_fetcher.py,sha256=PfPEeWTtx1Fqa1jClFPKqXhY5Yvs8MyEkSJk
|
|
|
6
6
|
git_recap/providers/base_fetcher.py,sha256=SS35FP8B9_RwnU6CnMbcV9g5_YRWp7v-S7pwbt402Ng,3067
|
|
7
7
|
git_recap/providers/github_fetcher.py,sha256=rDb00RVy2NMpwv8s8Ry1-UjS6wf1Sh2Ndl0xKOZXMxU,4998
|
|
8
8
|
git_recap/providers/gitlab_fetcher.py,sha256=ch1V9O-MPv5_nyg9yLs6EC9e-yqsFXBXMm6xVevWzuQ,5396
|
|
9
|
-
git_recap/providers/url_fetcher.py,sha256=
|
|
10
|
-
git_recap-0.1.
|
|
11
|
-
git_recap-0.1.
|
|
12
|
-
git_recap-0.1.
|
|
13
|
-
git_recap-0.1.
|
|
14
|
-
git_recap-0.1.
|
|
9
|
+
git_recap/providers/url_fetcher.py,sha256=ofpwpwygJFlW9x7pU2PrO-tn6XcykWDSJbXeBV1KK3c,8337
|
|
10
|
+
git_recap-0.1.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
11
|
+
git_recap-0.1.3.dist-info/METADATA,sha256=-6OhqY14z1qf3BjkUaH6LNGXeAkTy2A_-1gXiwtRRIY,4721
|
|
12
|
+
git_recap-0.1.3.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
|
13
|
+
git_recap-0.1.3.dist-info/top_level.txt,sha256=1JUKd3WPB8c3LcD1deIW-1UTmYzA0zJqwugAz72YZ_o,10
|
|
14
|
+
git_recap-0.1.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|