We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0fb3dd commit 446ea44Copy full SHA for 446ea44
src/huggingface_hub/__init__.py
@@ -16,7 +16,7 @@
16
# See the License for the specific language governing permissions and
17
# limitations under the License.
18
19
-__version__ = "0.0.5"
+__version__ = "0.0.6"
20
21
from .constants import (
22
CONFIG_NAME,
src/huggingface_hub/repository.py
@@ -1,5 +1,6 @@
1
import logging
2
import os
3
+import re
4
import subprocess
5
from typing import List, Optional, Union
6
@@ -252,7 +253,9 @@ def git_remote_url(self) -> str:
252
253
check=True,
254
cwd=self.local_dir,
255
)
- return p.stdout.strip()
256
+ url = p.stdout.strip()
257
+ # Strip basic auth info.
258
+ return re.sub(r"https://.*@", "https://", url)
259
except subprocess.CalledProcessError as exc:
260
raise EnvironmentError(exc.stderr)
261
0 commit comments