File: update-upstream-branch.sh

package info (click to toggle)
golang-golang-x-exp 0.0~git20181112.a3060d4-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,968 kB
  • sloc: ansic: 1,884; sh: 342; objc: 273; asm: 48; makefile: 10
file content (16 lines) | stat: -rwxr-xr-x 344 bytes parent folder | download | duplicates (41)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
set -e

dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
"$dir/setup-upstream-remote.sh"

( set -x; git fetch -q upstream master )
( set -x; git update-ref refs/heads/upstream FETCH_HEAD )

echo
echo 'local "upstream" branch updated'
echo
echo 'use the following to push it:'
echo
echo '  git push -f origin upstream:upstream'
echo