title: how to use git "--unshallow" with a "--single-branch" clone?
body: <p>I first shallow-cloned a repo with depth=1.</p>
  
  <pre><code>cd $folder_path
  git init
  git remote add $my_remote $url_to_repo
  git fetch $my_remote $my_branch --depth=1
  git reset --hard $my_remote/$my_branch
  cd -
  </code></pre>
  
  <p>I then tried to unshallow the local clone by running twice this</p>
  
  <pre><code>if [[ ! -z "$(git rev-parse --is-shallow-repository)" ]]; then
      echo "STILL SHALLOW"
      git fetch $my_remote $my_branch --unshallow 
  fi
  </code></pre>
  
  <p>I got "STILL SHALLOW" twice, and step by step still the same...</p>
  
  <pre><code>$ git rev-parse --is-shallow-repository
  --is-shallow-repository
  $ git fetch $my_remote $my_branch --unshallow 
  remote: Counting objects: 16, done.
  remote: Compressing objects: 100% (12/12), done.
  remote: Total 16 (delta 8), reused 0 (delta 0)
  Unpacking objects: 100% (16/16), done.
  From ssh://my_git_url.git
   * branch              my_branch -&gt; FETCH_HEAD
  $ git rev-parse --is-shallow-repository
  --is-shallow-repository
  </code></pre>
  
  <p>So what am I doing wrong?
  how to use <code>--unshallow</code> ?</p>