Facing some wired issue while working with Jenkins,
#!/bin/sh
set -x
#initialize environment
export PATH="$HOME/.gem/ruby/2.0.0/bin:$PATH"
export PATH="$HOME/.fastlane/bin:$PATH"
export LC_CTYPE=en_US.UTF-8
cd ~/autobuild/projects/MyAPP
git checkout dev
git reset head --hard
git pull
git shortlog
git log
When i run this above script from Jenkins job, it shows git log output fine, but nothing for git shortlog
. Whats the issue? MyApp has hundreds of commits.