Permalink
Browse files

Merge pull request #1 from subwindow/patch-1

Fix error "update_repository:29: unrecognized modifier `0'" by using cut
  • Loading branch information...
mpapis committed Dec 18, 2011
2 parents e6c6a05 + d51f868 commit 13bb5470e32ed2ac782ce64d055256ba47d79d47
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 13bb547

Please sign in to comment.