Moved Git-repositories to Alioth
Christophe Monniez
christophe.monniez at fccu.be
Wed Sep 23 08:20:47 UTC 2009
Le mercredi 23 septembre 2009 à 09:51 +0200, Michael Prokop a écrit :
> Hi,
>
> as discussed and planned I've transferred the git repositories from
> Daniel's git.debian.net over to the forensics project on Debian's
> Alioth -> http://git.debian.org/
>
> Please don't put your stuff to git.debian.net any longer, but
> instead push it over to the repositories at git.debian.org.
>
> You should be able to access the repository using:
>
> git clone ssh://${USERNAME}@git.debian.org/git/forensics/${REPOSNAME}.git
>
> Please check whether everything works for you as expected and all
> data is there. If you miss any repositories, branches, data,... or
> have any problems/questions please don't hestitate to contact me.
>
> If you're interested in how I moved the stuff:
>
> ,---- [ move-git-repos.sh on alioth ]
> | umask 002
> |
> | for i in aesfix aeskeyfind afflib bios-memimage chaosreader dc3dd ext3grep \
> | fatback ftimes galleta gpart grokevt guymager homepage libewf libguytools \
> | md5deep memdump missidentify myrescue pasco pipebench recoverdm reglookup \
> | rifiuti rifiuti2 rsakeyfind safecopy scrounge-ntfs shed sleuthkit \
> | ssdeep tableau-parm tct unhide wipe
> | do
> |
> | cd /git/forensics
> |
> | if [ -d "${i}.git" ] ; then
> | echo "repository $i exists already"
> | else
> | mkdir "${i}.git" && cd "${i}.git" || exit 1
> | git --bare init --shared
> | chmod a+x hooks/post-update
> |
> | cat >hooks/post-receive <<END
> | #!/bin/sh
> | exec /usr/local/bin/git-commit-notice
> | END
> |
> | chmod 755 hooks/post-receive
> |
> | echo "debian-forensics/$i" > description
> | git config --add hooks.cia-project debian-forensics
> | git config --add hooks.mailinglist forensics-changes at lists.alioth.debian.org
> | fi
> | done
> `----
>
> ,---- [ move-to-alioth.sh on my client ]
> | for i in aesfix aeskeyfind afflib bios-memimage chaosreader dc3dd ext3grep \
> | fatback ftimes galleta gpart grokevt guymager homepage libewf libguytools \
> | md5deep memdump missidentify myrescue pasco pipebench recoverdm reglookup \
> | rifiuti rifiuti2 rsakeyfind safecopy scrounge-ntfs shed sleuthkit \
> | ssdeep tableau-parm tct unhide wipe
> | do
> |
> | cd /grml/git-forensic/${i}
> |
> | git remote add alioth ssh://mika@git.debian.org/git/forensics/${i}.git
> |
> | if git branch -a | grep -q debian ; then
> | git checkout -b debian origin/debian
> | git checkout -b upstream origin/upstream
> | git checkout -b pristine-tar origin/pristine-tar
> | git push alioth debian
> | git push alioth upstream
> | git push alioth pristine-tar
> | echo "finished $i"
> | else
> | echo "no debian branch on $i - pushing master instead"
> | git push alioth master
> | fi
> |
> | git push alioth --tags
> |
> | done
> `----
>
> ,---- [ make-debian-the-default-branch.sh on alioth ]
> | for i in aesfix aeskeyfind afflib bios-memimage chaosreader dc3dd ext3grep \
> | fatback ftimes galleta gpart grokevt guymager homepage libewf libguytools \
> | md5deep memdump missidentify myrescue pasco pipebench recoverdm reglookup \
> | rifiuti rifiuti2 rsakeyfind safecopy scrounge-ntfs shed sleuthkit \
> | ssdeep tableau-parm tct unhide wipe
> | do
> | cd /git/forensics/${i}.git
> | # make sure that HEAD is pointing to debian branch if that one exists
> | if [ -f refs/heads/debian ] ; then
> | git symbolic-ref HEAD refs/heads/debian
> | echo "marking debian as default branch in $i"
> | fi
> | done
> `----
>
> regards,
> -mika-
Thanks for this good work Michael.
It seems to work from my point of view.
--
Christophe Monniez
christophe.monniez at fccu.be
tel: +32 2 743 7366
web: http://lnx4n6.be
More information about the forensics-devel
mailing list