[java-parent-project-v3] 02/04: Add Git to script.

Tom Zeller tzeller at dragonacea.biz
Tue Mar 1 19:44:24 EST 2016


This is an automated email from the git hooks/post-receive script.

tzeller pushed a commit to branch master
in repository java-parent-project-v3.

commit 2a0a6dd56f5a5e4edc18e1ca9ef96bcc99cd02bf
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Tue Mar 1 18:40:38 2016 -0600

    Add Git to script.
---
 bin/create-project-common.sh | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/bin/create-project-common.sh b/bin/create-project-common.sh
index 1ac7d63..6005ec5 100755
--- a/bin/create-project-common.sh
+++ b/bin/create-project-common.sh
@@ -12,6 +12,7 @@ declare -r RM=${RM:-"/bin/rm"}
 declare -r SVN=${SVN:-"/usr/bin/svn"}
 declare -r TOUCH=${TOUCH:-"/usr/bin/touch"}
 declare -r FIND=${FIND:-"/usr/bin/find"}
+declare -r GIT=${GIT:-"/usr/bin/git"}
 
 # URL to the java parent project from which everything inherits
 # we start with the trunk version and then use the *-lock-version commands before
@@ -203,3 +204,16 @@ function set_svn_properties_commit_and_update {
     $SVN commit -q -m "Committing svn.ignore" "$1"
     check_retval $? "Unable to commit svn:ignore of $1."
 }
+
+# Start git repository
+#
+# $1 Project directory
+# TODO Maybe we shouldn't commit or add the remote, not sure.
+function git_start_project {
+    cd $1
+    $GIT init
+    $GIT add .
+    $GIT commit -m "First commit"
+    $GIT remote add origin git at git.shibboleth.net:$1
+    cd ..
+}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list