소스 검색

Merge pull request #1181 from jelmer/backwards-compat

Be backwards compatible with older derived Repo implementations
Jelmer Vernooij 1 년 전
부모
커밋
264c5b68bc
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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."""