Created
September 22, 2010 03:32
-
-
Save kastner/591090 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| GIT_WORK_TREE=/tmp/dep | |
| GIT_DIR=/home/ekastner/deployinator/.git | |
| user_map_program=/tmp/usermap.sh | |
| # if you need to test just a range of commits to debug | |
| # for i in `git log --format=%h 83f7fec..265f9a7 | tac` | |
| for i in `git log --format=%h | tac` | |
| do | |
| git reset --hard $i | |
| find . -type f -or -type l | grep -v '\.svn/' | xargs svn add --parents 2>/dev/null | |
| git log $i -1 > /tmp/cmt | |
| commit=`svn ci -F /tmp/cmt --non-interactive | tail -n1 | awk '{print $3}' | sed -e 's/\.//'` | |
| echo "Commit is $commit" | |
| svn pset svn:author --revprop -r $commit `$user_map_program $i` | |
| svn up | |
| # turn this on to pause between commits for debugging | |
| # read bob | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| commit=$1 | |
| email=`git log -1 $commit --format=%ae` | |
| if [ `expr $email : "kastner"` -gt 0 ] | |
| then | |
| echo "ekastner" | |
| else | |
| echo `echo $email | awk -F @ '{print $1}'` | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment