Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1 from subwindow/patch-1

Fix error "update_repository:29: unrecognized modifier `0'" by using cut
  • Loading branch information...
commit 13bb5470e32ed2ac782ce64d055256ba47d79d47 2 parents e6c6a05 + d51f868
@mpapis mpapis authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.