#!/usr/bin/env bash
## Get all Pull Request branches as local remote branches by refspec.
## Source: git-extra-commands

#
# Fetch PR branches by refspec
#
# Copyright 2020, Joe Block <jpb@unixorn.net>

set -o pipefail

# Get all Pull Request branches as local remote branches by refspec.
exec git fetch origin '+refs/pull/*/head:refs/remotes/origin/pr/*'
