I am managing my svn repositories as a git repo through git-svn tool, but there is no way to handle my svn externals. This problem is solved by treating each external as a git-svn repo. This is done using a script and the result is something similar to this:
> src/
> -- .git/
> -- Source1.x
> -- Source2.x
> -- .git_external/
> ---- git-svn_external1/
> ------ .git/
> ------ ExternalSource1.x
> ---- git-svn_external2/
> ------ .git/
> ------ AnotherExternalSource1.x
> ------ AnotherExternalSource2.x
With the lack of a tool to handle the svn externals, I need to verify each modification through a bash script that is executed manually and it is something like this:
#!/bin/sh
for i in `ls .` do
if [ -d $i ] then
cd $i
if [ -d .git ] then
git status .
fi
cd ..
fi
done
How can I achieve this automatically while executing the git status
command on main git-svn repository?
I didn't find any hook related to this situation, so I think that I need to find a workaround to this problem.