Skip to content
  • Jeff King's avatar
    push: detect local refspec errors early · ba928c13
    Jeff King authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    When pushing, we do not even look at our push refspecs until
    after we have made contact with the remote receive-pack and
    gotten its list of refs. This means that we may go to some
    work, including asking the user to log in, before realizing
    we have simple errors like "git push origin matser".
    
    We cannot catch all refspec problems, since fully evaluating
    the refspecs requires knowing what the remote side has. But
    we can do a quick sanity check of the local side and catch a
    few simple error cases.
    
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    ba928c13