Prechádzať zdrojové kódy

Be backwards compatible with Repo derivatives

Jelmer Vernooij 1 rok pred
rodič
commit
fbfbc96ff1
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      dulwich/repo.py

+ 2 - 1
dulwich/repo.py

@@ -383,7 +383,8 @@ class BaseRepo:
 
         Returns: True if symlinks can be created, False otherwise.
         """
-        raise NotImplementedError(self._determine_symlinks)
+        # For now, just mimic the old behaviour
+        return sys.platform != "win32"
 
     def _init_files(self, bare: bool, symlinks: Optional[bool] = None) -> None:
         """Initialize a default set of named files."""