Permalink
Browse files

Invalid submodule info

  • Loading branch information...
1 parent 30f7abe commit 13d42ee0cffddebc986947da4bab819d78fb6759 @kvz committed Sep 3, 2009
Showing with 28 additions and 3 deletions.
  1. +2 −1 .gitignore
  2. +2 −2 .gitmodules
  3. +24 −0 up.sh
View
@@ -1,2 +1,3 @@
-.project
nbproject
+gitup.dat
+.project
View
@@ -1,3 +1,3 @@
-[submodule "/home/kevin/workspace/phpjs/ext/kvzlib"]
- path = /home/kevin/workspace/phpjs/ext/kvzlib
+[submodule "kvzlib"]
+ path = ext/kvzlib
url = git://github.com/kvz/kvzlib.git
View
24 up.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+if [ -z "${1}" ]; then
+ PREV_COMMENT=""
+ [ -f gitup.dat ] && PREV_COMMENT=$(cat gitup.dat)
+
+ echo "You are about to commit & gitup changes"
+ echo "Press CTRL+C now if you are unsure"
+ echo ""
+
+ while [ -z "${COMMENT}" ]; do
+ read -p "Please tell me what you've done: (default is: '${PREV_COMMENT}') " COMMENT
+ [ -z "${COMMENT}" ] && [ -n "${PREV_COMMENT}" ] && COMMENT="${PREV_COMMENT}"
+ done
+else
+ if [ -n "${21}" ]; then
+ echo "20 Words Max"
+ exit 1
+ fi
+ COMMENT="${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14} ${15} ${16} ${17} ${18} ${19} ${20}"
+fi
+echo "${COMMENT}" > gitup.dat
+
+echo "Committing: ${COMMENT}..."
+git commit -a -m "${COMMENT}" && git push

0 comments on commit 13d42ee

Please sign in to comment.