cd $DIRNAME
echo "Initializing submodules..."
- /usr/bin/git submodule update --init --recursive
+ $GIT submodule update --init --recursive
if [ ! -e "$HOME/.dotfiles" ]; then
echo "Cloning default dotfiles..."
#echo "Checking latest tag..."
#cd $HOME/.dotfiles
- #$DIRNAME/utils-/usr/bin/git//usr/bin/git-check-tag
+ #$DIRNAME/utils-git/git-check-tag
#echo "Checking out the latest tag..."
- #$DIRNAME/utils-/usr/bin/git//usr/bin/git-checkout-tag
+ #$DIRNAME/utils-git/git-checkout-tag
echo "Checking dotfiles..."
$DIRNAME/metadot/metadot version
echo "master branch:"
echo "=============="
echo ""
- ( cd $DIRNAME && /usr/bin/git log --show-signature -n 1 )
+ ( cd $DIRNAME && $GIT log --show-signature -n 1 )
echo ""
echo "origin/master branch:"
echo "====================="
echo ""
- ( cd $DIRNAME && /usr/bin/git log --show-signature -n 1 --branches=origin/master )
+ ( cd $DIRNAME && $GIT log --show-signature -n 1 --branches=origin/master )
}
# Fetch
function inception_fetch {
- ( cd $DIRNAME && /usr/bin/git fetch --all && /usr/bin/git log -n 1 --branches=origin/master )
+ ( cd $DIRNAME && $GIT fetch --all && $GIT log -n 1 --branches=origin/master )
}
# Merge
function inception_merge {
- ( cd $DIRNAME && /usr/bin/git merge origin/master && /usr/bin/git submodule update --init --recursive )
+ ( cd $DIRNAME && $GIT merge origin/master && $GIT submodule update --init --recursive )
}
# Main