Permalink
Browse files

Merge branch 'master' of github.com:sm/sm_deploy

  • Loading branch information...
2 parents e704fd9 + 13bb547 commit b700786b4c18b0c779a0598223c075a12c95f55c @wayneeseguin wayneeseguin committed Jan 3, 2012
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

0 comments on commit b700786

Please sign in to comment.