File: setup-upstream-remote.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 (8 lines) | stat: -rwxr-xr-x 159 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
#!/bin/bash
set -e

upstream='https://github.com/golang/exp.git'

if ! git remote | grep -q upstream; then
	( set -x; git remote add upstream "$upstream" )
fi