added submodule to idea, remove obsolette bash file

Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
Václav Valíček 2022-06-25 23:55:07 +02:00
parent 420646e2d7
commit e500c775d4
Signed by: valicek
GPG Key ID: FF05BDCA0C73BB31
2 changed files with 1 additions and 18 deletions

View File

@ -2,5 +2,6 @@
<project version="4"> <project version="4">
<component name="VcsDirectoryMappings"> <component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" /> <mapping directory="$PROJECT_DIR$" vcs="Git" />
<mapping directory="$PROJECT_DIR$/tests/_support_data/test-repo-base" vcs="Git" />
</component> </component>
</project> </project>

View File

@ -1,18 +0,0 @@
#!/bin/bash
# library made for sourcing - just to prepare git auth environment
function prepareGitAuth(){
# usage
# $1 - config directory
confdir=$1/auth
[ -d $confdir ] || mkdir $confdir
[ -d $confdir/ssh ] || mkdir $confdir/ssh
chmod 0700 $confdir
# git configure http authenticator
git config --global credential.helper "store --file=$confdir/git-credentials"
# git configure ssh auth
git config --global core.sshcommand "ssh -i $confdir/ssh/identity -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o BatchMode=yes -q"
}