title: Jenkins can't locate directory in git repo
body: <p>I have installed jenkins on an ssh server on my ubuntu machine. I've created a job that builds a c++ project. </p>
  
  <p>The job executes the shell command:</p>
  
  <pre><code>cd exact-arithmetic/
  qmake exact-arithmetic.pro
  make
  </code></pre>
  
  <p>When the job builds I receive the following error</p>
  
  <pre><code>Building in workspace /var/lib/jenkins/workspace/integerBuild
  Cloning the remote Git repository
  Cloning repository REPONAME
   &gt; git init /var/lib/jenkins/workspace/integerBuild # timeout=10 
  Fetching upstream changes from REPONAME
   &gt; git --version # timeout=10
  using GIT_ASKPASS to set credentials 
   &gt; git fetch --tags --progress REPONAME +refs/heads/*:refs/remotes/origin/*
   &gt; git config remote.origin.url REPONAME # timeout=10
   &gt; git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
   &gt; git config remote.origin.url REPONAME # timeout=10
  Fetching upstream changes from REPONAME
  using GIT_ASKPASS to set credentials 
   &gt; git fetch --tags --progress REPONAME +refs/heads/*:refs/remotes/origin/*
   &gt; git rev-parse refs/remotes/origin/master^{commit} # timeout=10
   &gt; git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
  Checking out Revision d1d90929149a6de918bae21bdc6710c1965a81a5 (refs/remotes/origin/master)
   &gt; git config core.sparsecheckout # timeout=10
   &gt; git checkout -f d1d90929149a6de918bae21bdc6710c1965a81a5
  Commit message: "Peronalisation files for git"
   &gt; git rev-list --no-walk d1d90929149a6de918bae21bdc6710c1965a81a5 # timeout=10
  [integerBuild] $ /bin/sh -xe /tmp/jenkins5258842808869431608.sh
  + cd exact-arithmetic/
  /tmp/jenkins5258842808869431608.sh: 2: cd: can't cd to exact-arithmetic/
  Build step 'Execute shell' marked build as failure
  [WS-CLEANUP] Deleting project workspace...[WS-CLEANUP] done
  Finished: FAILURE
  </code></pre>
  
  <p>Jenkins is having no issue connecting to the repo. When I view the github repo i see that the directory exact-arithmetic exists.</p>
  
  <p>However, I have ran a job that executes the command line ls and none of my directories appear. I'm not sure what I've done wrong and seem to find much helpful information.</p>
  
  <p>Any help is appreciated.</p>