Rishi Desai commited on
Commit
eb9fb03
·
1 Parent(s): ba02055

fixing lfs install issue

Browse files
Files changed (1) hide show
  1. install.py +6 -1
install.py CHANGED
@@ -18,7 +18,12 @@ def run_cmd(command):
18
  def install_lfs_files():
19
  """Install dependencies, pull git lfs files."""
20
  run_cmd("apt-get update && apt-get install -y git-lfs")
21
- run_cmd("git lfs install")
 
 
 
 
 
22
  run_cmd("git lfs pull")
23
  print("✅ Git LFS installed and files pulled.")
24
 
 
18
  def install_lfs_files():
19
  """Install dependencies, pull git lfs files."""
20
  run_cmd("apt-get update && apt-get install -y git-lfs")
21
+ hook_path = os.path.join(".git", "hooks", "pre-push")
22
+ if os.path.exists(hook_path):
23
+ print("⚠️ Git LFS hook already exists. Skipping installation.")
24
+ else:
25
+ run_cmd("git lfs install")
26
+
27
  run_cmd("git lfs pull")
28
  print("✅ Git LFS installed and files pulled.")
29