File: ignore_git_hidden_folder_in_petscclone_py.patch

package info (click to toggle)
petsc 3.24.1%2Bdfsg1-1exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 524,004 kB
  • sloc: ansic: 762,842; cpp: 52,564; python: 39,546; f90: 17,688; javascript: 3,493; makefile: 3,206; sh: 1,508; xml: 619; objc: 445; java: 13; csh: 1
file content (13 lines) | stat: -rw-r--r-- 782 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: petsc/config/PETSc/options/petscclone.py
===================================================================
--- petsc.orig/config/PETSc/options/petscclone.py	2025-11-05 12:08:30.698741867 +0100
+++ petsc/config/PETSc/options/petscclone.py	2025-11-05 12:08:30.692055949 +0100
@@ -41,7 +41,7 @@
       else:
         self.logPrint('This repository clone is obtained as a tarball as no .git dirs exist')
     else:
-      if os.path.exists(os.path.join(self.petscdir.dir, '.git')):
+      if False and os.path.exists(os.path.join(self.petscdir.dir, '.git')):
         raise RuntimeError('Your PETSc source tree is broken. Use "git status" to check, or remove the entire directory and start all over again')
       else:
         self.logPrint('This is a tarball installation')