public
Created

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
[root@git6staging drupalfr.git]# ls -la
total 472
drwxrwsr-x 6 drupal-git drupal-git 4096 Feb 25 2011 .
drwxrwsr-x 12171 drupal-git drupal-git 446464 May 12 16:21 ..
drwxrwsr-x 2 drupal-git drupal-git 4096 Feb 25 2011 branches
-rw-rw-r-- 1 drupal-git drupal-git 668 Feb 25 2011 config
-rw-rw-r-- 1 drupal-git drupal-git 104 Feb 25 2011 description
-rw-rw-r-- 1 drupal-git drupal-git 23 Feb 25 2011 HEAD
lrwxrwxrwx 1 drupal-git drupal-git 32 May 10 09:07 hooks -> /var/git/templates/hooks/project
drwxrwsr-x 2 drupal-git drupal-git 4096 Feb 25 2011 info
drwxrwsr-x 7 drupal-git drupal-git 4096 Feb 25 2011 objects
drwxrwsr-x 4 drupal-git drupal-git 4096 Feb 25 2011 refs
[root@git6staging drupalfr.git]# git pack-refs --all --prune
[root@git6staging drupalfr.git]# ls -la
total 476
drwxrwsr-x 6 drupal-git drupal-git 4096 Jun 16 22:55 .
drwxrwsr-x 12171 drupal-git drupal-git 446464 May 12 16:21 ..
drwxrwsr-x 2 drupal-git drupal-git 4096 Feb 25 2011 branches
-rw-rw-r-- 1 drupal-git drupal-git 668 Feb 25 2011 config
-rw-rw-r-- 1 drupal-git drupal-git 104 Feb 25 2011 description
-rw-rw-r-- 1 drupal-git drupal-git 23 Feb 25 2011 HEAD
lrwxrwxrwx 1 drupal-git drupal-git 32 May 10 09:07 hooks -> /var/git/templates/hooks/project
drwxrwsr-x 2 drupal-git drupal-git 4096 Feb 25 2011 info
drwxrwsr-x 7 drupal-git drupal-git 4096 Feb 25 2011 objects
-rw-r--r-- 1 root drupal-git 85 Jun 16 22:55 packed-refs
drwxrwsr-x 4 drupal-git drupal-git 4096 Feb 25 2011 refs
[root@git6staging drupalfr.git]# cat packed-refs
# pack-refs with: peeled
c21eae71e2e65aefd86312c82a30908f26b387fe refs/heads/master
[root@git6staging drupalfr.git]# ls -la refs/heads/
total 8
drwxrwsr-x 2 drupal-git drupal-git 4096 Jun 16 22:55 .
drwxrwsr-x 4 drupal-git drupal-git 4096 Feb 25 2011 ..
[root@git6staging drupalfr.git]# git update-ref -d master
[root@git6staging drupalfr.git]# cat packed-refs
# pack-refs with: peeled
c21eae71e2e65aefd86312c82a30908f26b387fe refs/heads/master
[root@git6staging drupalfr.git]# git update-ref -d master c21eae71e2e65aefd86312c82a30908f26b387fe
error: unable to resolve reference master: No such file or directory
[root@git6staging drupalfr.git]# ls -la refs/heads
total 8
drwxrwsr-x 2 drupal-git drupal-git 4096 Jun 16 22:55 .
drwxrwsr-x 4 drupal-git drupal-git 4096 Feb 25 2011 ..
[root@git6staging drupalfr.git]#

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.