aboutsummaryrefslogtreecommitdiff
path: root/inception
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-03-16 10:54:51 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-03-16 10:54:51 -0300
commitb8bd63257f1a1cc483678d56ba8fdba1869ba445 (patch)
tree9a9b394eb1767f49685e41b8c7c61816cbb21456 /inception
parent541ab8db9a04dc23c86b5fa5763d5729c22774f0 (diff)
downloadapps-b8bd63257f1a1cc483678d56ba8fdba1869ba445.tar.gz
apps-b8bd63257f1a1cc483678d56ba8fdba1869ba445.tar.bz2
Inception: Make sure we're running git directly and not any existing wrapper
Diffstat (limited to 'inception')
-rwxr-xr-xinception17
1 files changed, 10 insertions, 7 deletions
diff --git a/inception b/inception
index 3d54387..022674e 100755
--- a/inception
+++ b/inception
@@ -7,6 +7,9 @@
BASENAME="`basename $0`"
DIRNAME="$(cd `dirname $0` &> /dev/null && pwd)"
+# Make sure we're running git directly and not any existing wrapper
+GIT="/usr/bin/git"
+
# Usage
function inception_usage {
echo "usage: $BASENAME <action> [options]"
@@ -19,7 +22,7 @@ function inception_init {
cd $DIRNAME
echo "Initializing submodules..."
- git submodule update --init --recursive
+ /usr/bin/git submodule update --init --recursive
if [ ! -e "$HOME/.dotfiles" ]; then
echo "Cloning default dotfiles..."
@@ -31,10 +34,10 @@ function inception_init {
#echo "Checking latest tag..."
#cd $HOME/.dotfiles
- #$DIRNAME/utils-git/git-check-tag
+ #$DIRNAME/utils-/usr/bin/git//usr/bin/git-check-tag
#echo "Checking out the latest tag..."
- #$DIRNAME/utils-git/git-checkout-tag
+ #$DIRNAME/utils-/usr/bin/git//usr/bin/git-checkout-tag
echo "Checking dotfiles..."
$DIRNAME/metadot/metadot version
@@ -117,23 +120,23 @@ function inception_version {
echo "master branch:"
echo "=============="
echo ""
- ( cd $DIRNAME && git log --show-signature -n 1 )
+ ( cd $DIRNAME && /usr/bin/git log --show-signature -n 1 )
echo ""
echo "origin/master branch:"
echo "====================="
echo ""
- ( cd $DIRNAME && git log --show-signature -n 1 --branches=origin/master )
+ ( cd $DIRNAME && /usr/bin/git log --show-signature -n 1 --branches=origin/master )
}
# Fetch
function inception_fetch {
- ( cd $DIRNAME && git fetch --all && git log -n 1 --branches=origin/master )
+ ( cd $DIRNAME && /usr/bin/git fetch --all && /usr/bin/git log -n 1 --branches=origin/master )
}
# Merge
function inception_merge {
- ( cd $DIRNAME && git merge origin/master && git submodule update --init --recursive )
+ ( cd $DIRNAME && /usr/bin/git merge origin/master && /usr/bin/git submodule update --init --recursive )
}
# Main