Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix error "update_repository:29: unrecognized modifier `0'" by using cut #1

Merged
merged 1 commit into from

2 participants

@subwindow

Using cut fixes error.

@mpapis mpapis merged commit 13bb547 into sm:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 18, 2011
  1. @subwindow
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 2 deletions.
  1. +1 −2  shell/functions
View
3  shell/functions
@@ -105,8 +105,7 @@ update_repository()
git checkout $revision > "${deploy_log_path}/git-checkout.log" 2>&1
log step success
else
- revision=$( git log --no-color -1 | awk '/commit/{print $2}')
- revision=${revision:0:7}
+ revision=$( git log --no-color -1 | awk '/commit/{print $2}' | cut -b -7)
fi
if variable is nonempty branch
Something went wrong with that request. Please try again.