Skip to content

Commit

Permalink
rebuild_refs
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien JUIF committed May 30, 2017
1 parent ece2d42 commit 91a378b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions misc/rebuild_refs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

IFS=$'\n'
for f in $(git show-ref --heads); do
hash=$(echo ${f} | cut -d' ' -f1)
file=$(echo ${f} | cut -d' ' -f2)

echo ${hash} > ".git/${file}"
done

0 comments on commit 91a378b

Please sign in to comment.