diff options
Diffstat (limited to 'bin/upstream-remote-from-copyright')
-rwxr-xr-x | bin/upstream-remote-from-copyright | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/upstream-remote-from-copyright b/bin/upstream-remote-from-copyright new file mode 100755 index 00000000..3873c3cf --- /dev/null +++ b/bin/upstream-remote-from-copyright @@ -0,0 +1,5 @@ +#!/bin/sh + +toplevel="$(git rev-parse --show-toplevel)" +source="$(grep ^Source: $toplevel/debian/copyright | awk -F': ' '{print $2}')" +git remote add -f upstream "$source" |