fix
This commit is contained in:
parent
9dfdc615de
commit
1dafab8971
@ -4,7 +4,7 @@
|
|||||||
# user "git" owned remote repository
|
# user "git" owned remote repository
|
||||||
#
|
#
|
||||||
# must run on remote server
|
# must run on remote server
|
||||||
# change HostName and RemoteName
|
# change GitTopDir, HostName and RemoteName
|
||||||
# ---------------------
|
# ---------------------
|
||||||
# R e s u l t E x a m p l e:
|
# R e s u l t E x a m p l e:
|
||||||
# sudo bash -c 'mkdir /opt/store/git/cvtt2/tests.git && cd /opt/store/git/cvtt2/tests.git && git init --bare && chown -R git:git /opt/store/git/cvtt2/tests.git'
|
# sudo bash -c 'mkdir /opt/store/git/cvtt2/tests.git && cd /opt/store/git/cvtt2/tests.git && git init --bare && chown -R git:git /opt/store/git/cvtt2/tests.git'
|
||||||
@ -12,12 +12,13 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
# ----- S e t t i n g s
|
# ----- S e t t i n g s
|
||||||
|
GitTopDir=/ops/store/git
|
||||||
HostName=cloud21.cvtt.vpn
|
HostName=cloud21.cvtt.vpn
|
||||||
RemoteName=origin
|
RemoteName=origin
|
||||||
# ----- S e t t i n g s
|
# ----- S e t t i n g s
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "Usage: ${0} <repo_name> [<repo_parent_dir> */opt/store/git/cvtt2]"
|
echo "Usage: ${0} <repo_name> [<repo_parent_dir> *${GitTopDir}/cvtt2]"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -27,7 +28,7 @@ if [ "" == "${RepoName}" ] ; then
|
|||||||
usage
|
usage
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RepoParentDir=/opt/store/git/cvtt2
|
RepoParentDir=${GitTopDir}/cvtt2
|
||||||
if [ "${2}" != "" ] ; then
|
if [ "${2}" != "" ] ; then
|
||||||
RepoParentDir=${2}
|
RepoParentDir=${2}
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user