Fix Bug: error: object file is empty

Brightcells 8 years ago
parent
commit
1c1a2dbc1a
1 changed files with 5 additions and 0 deletions
  1. 5 0
      startup.sh

+ 5 - 0
startup.sh

@@ -9,6 +9,11 @@ source minipai2.conf
9 9
 # Old Version
10 10
 oldversion=$version
11 11
 
12
+# Fix Bug: http://stackoverflow.com/questions/11706215/how-to-fix-git-error-object-file-is-empty/12371337#12371337
13
+find .git/objects/ -type f -empty | xargs rm
14
+git fetch -p
15
+git fsck --full
16
+
12 17
 # Fetch Remote Master Branch Refs
13 18
 git pull origin master
14 19