mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-23 20:03:31 +01:00
git: Don't pull github anymore in git-pull-all.sh
Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
parent
d642da020e
commit
3f73ab3f0d
@ -159,20 +159,7 @@ function goto_repo
|
|||||||
function fetch_origin
|
function fetch_origin
|
||||||
{
|
{
|
||||||
local cmd="git fetch origin"
|
local cmd="git fetch origin"
|
||||||
printf " %s Fetching origin..." "$MARKER"
|
printf "%s Fetching origin..." "$MARKER"
|
||||||
if [ $DRY_RUN -eq 0 ]; then
|
|
||||||
msg=$( eval "$cmd" 2>&1 )
|
|
||||||
validate_ret $? "$msg"
|
|
||||||
else
|
|
||||||
printf "\\n %s\\n" "${IWTH}$cmd${CNRM}"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# Fetch tor-github pull requests. No arguments.
|
|
||||||
function fetch_tor_github
|
|
||||||
{
|
|
||||||
local cmd="git fetch tor-github"
|
|
||||||
printf " %s Fetching tor-github..." "$MARKER"
|
|
||||||
if [ $DRY_RUN -eq 0 ]; then
|
if [ $DRY_RUN -eq 0 ]; then
|
||||||
msg=$( eval "$cmd" 2>&1 )
|
msg=$( eval "$cmd" 2>&1 )
|
||||||
validate_ret $? "$msg"
|
validate_ret $? "$msg"
|
||||||
@ -185,7 +172,7 @@ function fetch_tor_github
|
|||||||
function fetch_tor_gitlab
|
function fetch_tor_gitlab
|
||||||
{
|
{
|
||||||
local cmd="git fetch tor-gitlab"
|
local cmd="git fetch tor-gitlab"
|
||||||
printf " %s Fetching tor-gitlab..." "$MARKER"
|
printf "%s Fetching tor-gitlab..." "$MARKER"
|
||||||
if [ $DRY_RUN -eq 0 ]; then
|
if [ $DRY_RUN -eq 0 ]; then
|
||||||
msg=$( eval "$cmd" 2>&1 )
|
msg=$( eval "$cmd" 2>&1 )
|
||||||
validate_ret $? "$msg"
|
validate_ret $? "$msg"
|
||||||
@ -198,11 +185,10 @@ function fetch_tor_gitlab
|
|||||||
# Entry point #
|
# Entry point #
|
||||||
###############
|
###############
|
||||||
|
|
||||||
# First, fetch tor-github.
|
# Get into our origin repository.
|
||||||
goto_repo "$ORIGIN_PATH"
|
goto_repo "$ORIGIN_PATH"
|
||||||
fetch_tor_github
|
|
||||||
|
|
||||||
# Then tor-gitlab
|
# First, fetch tor-gitlab
|
||||||
fetch_tor_gitlab
|
fetch_tor_gitlab
|
||||||
|
|
||||||
# Then, fetch the origin.
|
# Then, fetch the origin.
|
||||||
|
Loading…
Reference in New Issue
Block a user