Quellcode durchsuchen

Merge pull request #1181 from jelmer/backwards-compat

Be backwards compatible with older derived Repo implementations
Jelmer Vernooij vor 1 Jahr
Ursprung
Commit
264c5b68bc
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  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."""