summaryrefslogtreecommitdiff
path: root/bin/git-unshallow
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2018-05-17 00:27:59 -0700
committerSean Whitton <spwhitton@spwhitton.name>2018-05-17 00:28:24 -0700
commit46ad47890327b381c4828723e88557c2be67c7ba (patch)
tree47e5838b7d771f9b4f9f643866802906efc40e6b /bin/git-unshallow
parent84688c6288b9f60e189285e42c4c91945242fac5 (diff)
downloaddotfiles-46ad47890327b381c4828723e88557c2be67c7ba.tar.gz
add git-unshallow
Diffstat (limited to 'bin/git-unshallow')
-rwxr-xr-xbin/git-unshallow7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/git-unshallow b/bin/git-unshallow
new file mode 100755
index 00000000..1fe8eee6
--- /dev/null
+++ b/bin/git-unshallow
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# assumes remote named origin
+
+git fetch --unshallow
+git remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
+git fetch origin