mirror of
https://github.com/wahyd4/gitolite.git
synced 2026-08-21 02:45:55 +10:00
sometimes I want to quickly test a few lines of change within the context of
a currently-running/just-ran test, *without* doing the rollback etc.
Here's how you do that now:
- in your source tree, make the change and then run:
cp -a src hooks contrib/adc /some/tmp/place
- go to the tester userid and re-run your tests like so:
GQT=/some/tmp/place ./test-driver.sh
it'll rollback as normal then overwrite src and hooks from $GQT
Also, there's now a "dbg" sub that can be used for quick printf-style
debugging.
15 lines
282 B
Bash
Executable File
15 lines
282 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cd
|
|
rm -rf .ssh .gitolite .gitolite.rc repositories gitolite-install
|
|
tar xf rollback.tar
|
|
|
|
# if arg1 is a directory, we have to overwrite sources from there (see commit
|
|
# message for details)
|
|
if [ -d "$1" ]
|
|
then
|
|
cd .gitolite
|
|
/bin/cp -a $1/{src,hooks} .
|
|
cd
|
|
fi
|