title: Terraform modules source using both a ref for branch and tag
body: <p>I am trying to determine if it is possible to specify both a matching branch and a tag when declaring a module in terraforming.</p>
  <p>In the <a href="https://www.terraform.io/docs/modules/sources.html#selecting-a-revision" rel="nofollow noreferrer">Terraform Docs</a> it notes that branch or tag can be used in the source for a module.</p>
  <pre><code>module &quot;vpc&quot; {
    source = &quot;git::https://example.com/vpc.git?ref=v1.2.0&quot;
  }
  </code></pre>
  <p>This works for specifying branch <code>ref=branch-name</code> or tag <code>ref=tag</code>, for my use case I wish to specify the branch as well as a tag simultaneously so that I can reference a module in a particular branch and at a specified version.</p>
  <p>I would hope it would have worked something like this</p>
  <pre><code>module &quot;vpc&quot; {
    source = &quot;git::https://example.com/vpc.git?ref=refs/heads/branch-name?ref=refs/tags/v1.0.0&quot;
  }
  </code></pre>
  <p>This does not work, please tell me if this is possible and if so how.</p>
  <p>Thank you ^_^</p>