summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-08-25 13:46:58 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-09-11 15:43:36 -0400
commitb9d3ab4b86284c4a9918ee908be767319e69c77d (patch)
tree2ea9ae69595677349f6f7455fd93241ebb805d08
parentf3030244f64699021ec0d9cd9e4b4d67244d9df1 (diff)
libregit: don't call gettext, I will count on libremessages to do that
-rwxr-xr-xsrc/libregit18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/libregit b/src/libregit
index 86fbef9..c20c25d 100755
--- a/src/libregit
+++ b/src/libregit
@@ -20,32 +20,32 @@
cd_safe() {
if ! cd "$1"; then
- error "$(gettext "Failed to change to directory %s")" "$1"
- plain "$(gettext "Aborting...")"
+ error "Failed to change to directory %s" "$1"
+ plain "Aborting..."
exit 1
fi
}
download_git() {
if [[ ! -d "$dir/.git" ]] ; then
- msg2 "$(gettext "Cloning %s %s repo...")" "${repo}" "git"
+ msg2 "Cloning %s %s repo..." "${repo}" "git"
if ! git clone "$repo" "$dir"; then
- error "$(gettext "Failure while downloading %s %s repo")" "${repo}" "git"
- plain "$(gettext "Aborting...")"
+ error "Failure while downloading %s %s repo" "${repo}" "git"
+ plain "Aborting..."
exit 1
fi
else
cd_safe "$dir"
# Make sure we are fetching the right repo
if [[ "$repo" != "$(git config --get remote.origin.url)" ]] ; then
- error "$(gettext "%s is not a clone of %s")" "$dir" "$repo"
- plain "$(gettext "Aborting...")"
+ error "%s is not a clone of %s" "$dir" "$repo"
+ plain "Aborting..."
exit 1
fi
- msg2 "$(gettext "Updating %s %s repo...")" "${repo}" "git"
+ msg2 "Updating %s %s repo..." "${repo}" "git"
if ! git pull origin "$ref"; then
# only warn on failure to allow offline builds
- warning "$(gettext "Failure while updating %s %s repo")" "${repo}" "git"
+ warning "Failure while updating %s %s repo" "${repo}" "git"
fi
fi
}