Permalink
Browse files

This was causing error "update_repository:29: unrecognized modifier `…

…0'". Using cut fixes it.
  • Loading branch information...
1 parent e6c6a05 commit d51f8686ce093f443b521317d19b8154b93734ec @subwindow subwindow committed Dec 18, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 shell/functions
View
@@ -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 d51f868

Please sign in to comment.