Skip to content

Commit

Permalink
This was causing error "update_repository:29: unrecognized modifier `…
Browse files Browse the repository at this point in the history
…0'". Using cut fixes it.
  • Loading branch information
erik-megarad committed Dec 18, 2011
1 parent e6c6a05 commit d51f868
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions shell/functions
Expand Up @@ -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
Expand Down

0 comments on commit d51f868

Please sign in to comment.