summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2021-10-25 05:52:37 -0400
committerAndrew Cady <d@cryptonomic.net>2021-10-25 05:52:37 -0400
commit895dc23f69939ce8c96a6aff55a798d8e204c75b (patch)
treeb200049a518c375b2a2eed0a3d331acc507668a3
parent4e15aaa8997d4977cff1578aa2a7293bdb2e10bc (diff)
improve selftest.sh
-rwxr-xr-xselftest.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/selftest.sh b/selftest.sh
index f249f6b..22d9182 100755
--- a/selftest.sh
+++ b/selftest.sh
@@ -25,10 +25,12 @@ know_thyself()
25run_test() 25run_test()
26{ 26{
27 ( 27 (
28 set -x
29 export GIT_SSH_COMMAND="ssh -p $port" 28 export GIT_SSH_COMMAND="ssh -p $port"
30 branch=$(git branch -q --show-current) || exit 29 branch=$(git branch -q --show-current) || exit
31 git push "${username}@${hostname}:${pwd}" "$branch" 30 remote=${username}@${hostname}:${pwd#$HOME/}
31 set -x
32 git push "$remote" "$branch"
33 git ls-remote "${remote}"
32 ) 34 )
33} 35}
34 36