Page MenuHomeDevCentral

git-update
No OneTemporary

git-update

#!/bin/sh
# -------------------------------------------------------------
# Git repository updater
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# Source file: roles/devserver/userland-home/files/dereckson/bin/git-update
# -------------------------------------------------------------
#
# <auto-generated>
# This file is managed by our rOPS SaltStack repository.
#
# Changes to this file may cause incorrect behavior
# and will be lost if the state is redeployed.
# </auto-generated>
BRANCH=$(git rev-parse --abbrev-ref HEAD)
REPO=$(git rev-parse --show-toplevel)
REPO_RETCODE=$?
if [ $REPO_RETCODE -ne 0 ]
then
exit $REPO_RETCODE
fi;
git fetch --all
git reset origin/$BRANCH && git status

File Metadata

Mime Type
text/x-shellscript
Expires
Fri, Nov 13, 15:04 (5 d, 9 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4222009
Default Alt Text
git-update (842 B)

Event Timeline