title: git-sync for kubernetes, Can I control the target directory?
body: <p>My git-sync container for kubernetes is up and running.  When I <code>$ cd</code> into the directory they appear like this:</p>
  <pre><code>deployment-apps/
     - mygit_sync_repo.git/
        - app1/
  </code></pre>
  <p>My question:
  Can I set git-sync to pull files so app1 is inside the same directory as mygit_sync_repo.git.  I want for deployment-apps/ to consume app1 directly.</p>
  <pre><code>deployment-apps/
     - app1/
     - mygit_sync_repo.git/
  </code></pre>
  <p>So far, I have tried to set</p>
  <pre><code> - name: GIT_SYNC_ROOT
    value: /
  </code></pre>
  <p>then I tried</p>
  <pre><code>- name: GIT_SYNC_ROOT
  value: &quot;.&quot;
  </code></pre>
  <p>I didn't think these would actually work.  But I haven't found a lot of example use-cases to learn from.</p>
  <p>my current manifest:</p>
  <pre><code>    - mountPath: /.../deployment-apps
        name: git-sync-volume
      - name: GIT_SYNC_REPO
        value: https://redacted.git
      - name: GIT_SYNC_BRANCH
        value: master
      - name: GIT_SYNC_USERNAME
        valueFrom:
          secretKeyRef:
            key: username
            name: redacted-secret
      - name: GIT_SYNC_PASSWORD
        valueFrom:
          secretKeyRef:
            key: redactedtoken
            name: redacted-secret
      - name: GIT_SYNC_PERMISSIONS
        value: &quot;0777&quot;
      - name: GIT_SYNC_ROOT
        value: /git
      image: git-sync-redacted
      imagePullPolicy: IfNotPresent
      name: git-sync
      securityContext:
        runAsUser: 0
      volumeMounts:
      - mountPath: /git
        name: git-sync-volume
  </code></pre>
  <p>I suppose another way to ask this question is can git pull down files without its parent directory? (I've seen some posts on this topic)  And can this happen with git-sync?</p>
  <p>Thanks</p>