Skip to content

Commit 744d9c4

Browse files
committed
Fix issue with the remote extraction under Travis CI.
Indeed, before this patch, the extraction of the git remote fetch URL failed if the repository was cloned with HTTPS (not SSH).
1 parent 31eff2c commit 744d9c4

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

PyFunceble/abstracts/package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class Package:
7171
Sets the package name.
7272
"""
7373

74-
VERSION = "2.41.0.dev (Green Galago: Skitterbug)"
74+
VERSION = "2.42.0.dev (Green Galago: Skitterbug)"
7575
"""
7676
Sets the package version.
7777
"""

PyFunceble/engine/auto_save.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def __get_remote_destination(cls):
191191
remote_of_interest = [
192192
x
193193
for x in PyFunceble.helpers.Command("git remote -v").execute().splitlines()
194-
if "(push)" in x
194+
if "(fetch)" in x
195195
][0]
196196

197197
filtered = PyFunceble.helpers.Regex(regex).match(
@@ -200,6 +200,9 @@ def __get_remote_destination(cls):
200200

201201
if filtered and "@" in filtered:
202202
return filtered[filtered.find("@") + 1 :]
203+
204+
if filtered and "//" in filtered:
205+
return filtered[filtered.find("//") + 2 :]
203206
raise ValueError("Could not find remote.")
204207

205208
@classmethod

version.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
current_version: '2.41.0.dev (Green Galago: Skitterbug)'
1+
current_version: '2.42.0.dev (Green Galago: Skitterbug)'
22
deprecated:
33
- 0.0.0
44
- 0.0.1
@@ -170,6 +170,7 @@ deprecated:
170170
- 2.38.1
171171
- 2.39.0
172172
- 2.40.0
173+
- 2.41.0
173174
force_update:
174175
minimal_version:
175176
- 0.0.0

0 commit comments

Comments
 (0)