Thanks to visit codestin.com Credit goes to github.com
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 29526b8 commit a1ce01cCopy full SHA for a1ce01c
git/util.py
@@ -4,7 +4,7 @@
4
# This module is part of GitPython and is released under
5
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
6
import contextlib
7
-from functools import wraps
+from functools import wraps, lru_cache
8
import getpass
9
import logging
10
import os
@@ -286,6 +286,7 @@ def _cyg_regex_path(drive, path):
286
)
287
288
289
+@lru_cache()
290
def cygpath(path):
291
"""Use :meth:`git.cmd.Git.polish_url()` instead, that works on any environment."""
292
for regex, parser, recurse in _cygpath_parsers:
0 commit comments