title: Not able to execute embedded Saltstack state using gitfs
body: <p>I am working with the "<strong>gitfs</strong>" feature of SaltStack in order to execute a state file.
  The state file uses the "include" feature to embed other two state files from the repository.</p>
  
  <p>My repository has the following hierarchy:</p>
  
  <pre><code>salt 
      - dir1
               - dir3 / init.sls
               - dir4 / init.sls
      - dir2
               - dir5 / init.sls
  </code></pre>
  
  <p>My master file is as below:</p>
  
  <pre><code>. . .
  fileserver_backend:
    - git
  
  gitfs_remotes:
    - https://username@bitbucket.org/path/to/repo.git
  . . .
  </code></pre>
  
  <p>The  salt/dir1/dir3/init.sls contains the following:</p>
  
  <pre><code>include:
    - salt/dir2/dir5/init.sls
    - salt/dir1/dir4/init.sls
  . . .
  </code></pre>
  
  <p>On restarting salt-master and then executing 
  salt-run fileserver.file_list saltenv=base backend=git
  shows me all the files from the repository.
  But on running 
  salt '' state.apply salt.dir1.dir3 -l debug
  I am getting the following error:</p>
  
  <pre><code>[ERROR   ] Data passed to highstate outputter is not a valid highstate return: {'&lt;minion-id&gt;': ['Specified SLS salt/dir2/dir5/init.sls in saltenv base is not available on the salt master or through a configured fileserver', 'Specified SLS salt/dir1/dir4/init.sls in saltenv base is not available on the salt master or through a configured fileserver']}
  </code></pre>
  
  <p>My system configurations are as follows:</p>
  
  <pre><code>$ salt --versions-report
  
  Salt Version:
             Salt: 2016.3.3
  
  Dependency Versions:
             cffi: Not Installed
         cherrypy: 3.2.2
         dateutil: 1.5
            gitdb: 0.5.4
        gitpython: 0.3.2 RC1
            ioflo: Not Installed
           Jinja2: 2.7.2
          libgit2: Not Installed
          libnacl: Not Installed
         M2Crypto: Not Installed
             Mako: 0.9.1
     msgpack-pure: Not Installed
   msgpack-python: 0.3.0
     mysql-python: 1.2.3
        pycparser: Not Installed
         pycrypto: 2.6.1
           pygit2: Not Installed
           Python: 2.7.6 (default, Jun 22 2015, 17:58:13)
     python-gnupg: Not Installed
           PyYAML: 3.10
            PyZMQ: 14.0.1
             RAET: Not Installed
            smmap: 0.8.2
          timelib: Not Installed
          Tornado: 4.2.1
              ZMQ: 4.0.5
  
  System Versions:
             dist: Ubuntu 14.04 trusty
          machine: x86_64
          release: 3.13.0-91-generic
           system: Linux
          version: Ubuntu 14.04 trusty
  </code></pre>
  
  <p>The repository gets cached into the "/var/cache/salt/master/gitfs/refs/base/salt" path on restarting salt-master.
  But I found "dir2/dir5/init/sls" instead of "dir2/dir5/init.sls"</p>
  
  <blockquote>
    <p><strong>What could be the reason for this issue?</strong></p>
  </blockquote>