<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -412,9 +412,16 @@ __git_complete_revlist ()
 
 __git_complete_remote_or_refspec ()
 {
-	local cmd=&quot;${COMP_WORDS[1]}&quot;
+	local cmd=&quot;${COMP_WORDS[0]}&quot;
 	local cur=&quot;${COMP_WORDS[COMP_CWORD]}&quot;
-	local i c=2 remote=&quot;&quot; pfx=&quot;&quot; lhs=1 no_complete_refspec=0
+	local i c=1 remote=&quot;&quot; pfx=&quot;&quot; lhs=1 no_complete_refspec=0
+
+	# adjust args upward when completing git *
+	[ &quot;$cmd&quot; = &quot;git&quot; ] &amp;&amp; {
+		cmd=&quot;${COMP_WORDS[1]}&quot;
+		c=2
+	}
+
 	while [ $c -lt $COMP_CWORD ]; do
 		i=&quot;${COMP_WORDS[c]}&quot;
 		case &quot;$i&quot; in
@@ -792,7 +799,7 @@ _git_branch ()
 
 _git_bundle ()
 {
-	local cmd=&quot;${COMP_WORDS[2]}&quot;
+	local cmd=&quot;${COMP_WORDS[1]}&quot;
 	case &quot;$COMP_CWORD&quot; in
 	2)
 		__gitcomp &quot;create list-heads verify unbundle&quot;</diff>
      <filename>git-completion.bash</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ccc750693ec82be690baf44bdd06dd633399e460</id>
    </parent>
  </parents>
  <author>
    <name>Ryan Tomayko</name>
    <email>r@tomayko.com</email>
  </author>
  <url>http://github.com/rtomayko/git-sh/commit/bedba53ef0cd363549712df81f576048f126eb81</url>
  <id>bedba53ef0cd363549712df81f576048f126eb81</id>
  <committed-date>2009-11-08T04:01:06-08:00</committed-date>
  <authored-date>2009-11-08T04:01:05-08:00</authored-date>
  <message>fix fetch, pull, push refspec completion

regressed when we upgraded.</message>
  <tree>34a87e68cce6d8b62953f9a60fd3e54123564c70</tree>
  <committer>
    <name>Ryan Tomayko</name>
    <email>r@tomayko.com</email>
  </committer>
</commit>
