fix sndev pr (detatched version)
This commit is contained in:
parent
f0334b6719
commit
a0b402b4d6
2
sndev
2
sndev
@ -328,11 +328,11 @@ __sndev__pr_track() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
__sndev__pr_detach() {
|
__sndev__pr_detach() {
|
||||||
|
refspec="+refs/pull/$1/head:refs/remotes/pr/$1"
|
||||||
case $(git config --get remote.origin.url) in
|
case $(git config --get remote.origin.url) in
|
||||||
"http"*) git fetch https://github.com/stackernews/stacker.news.git "$refspec" ;;
|
"http"*) git fetch https://github.com/stackernews/stacker.news.git "$refspec" ;;
|
||||||
*) git fetch git@github.com:stackernews/stacker.news.git "$refspec" ;;
|
*) git fetch git@github.com:stackernews/stacker.news.git "$refspec" ;;
|
||||||
esac
|
esac
|
||||||
refspec="+refs/pull/$1/head:refs/remotes/pr/$1"
|
|
||||||
git checkout "pr/$1"
|
git checkout "pr/$1"
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user