Compare commits
2 Commits
v0.6.0
...
453f73c2a0
| Author | SHA1 | Date | |
|---|---|---|---|
| 453f73c2a0 | |||
| 7e673200c8 |
@@ -9,8 +9,8 @@ source ./venv/bin/activate
|
|||||||
pip --disable-pip-version-check install -r ./requirements.txt
|
pip --disable-pip-version-check install -r ./requirements.txt
|
||||||
|
|
||||||
pip3 list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | while read -r package ; do
|
pip3 list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | while read -r package ; do
|
||||||
[[ package == "pip" ]] && continue
|
[[ "$package" == "pip" ]] && continue
|
||||||
[[ package == "setuptools" ]] && continue
|
[[ "$package" == "setuptools" ]] && continue
|
||||||
pip install --upgrade "${package}"
|
pip install --upgrade "${package}"
|
||||||
version="$(pip show "${package}" | grep '^Version' | cut -d ' ' -f 2)"
|
version="$(pip show "${package}" | grep '^Version' | cut -d ' ' -f 2)"
|
||||||
message="e2e_tests/pip: Update ${package} to ${version}"
|
message="e2e_tests/pip: Update ${package} to ${version}"
|
||||||
|
|||||||
@@ -1507,8 +1507,11 @@ pub fn clone_repo(
|
|||||||
repo.rename_remote(&origin, &remote.name)?;
|
repo.rename_remote(&origin, &remote.name)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut active_branch = repo.head_branch()?;
|
// If there is no head_branch, we most likely cloned an empty repository and
|
||||||
active_branch.set_upstream(&remote.name, &active_branch.name()?)?;
|
// there is no point in setting any upstreams.
|
||||||
|
if let Ok(mut active_branch) = repo.head_branch() {
|
||||||
|
active_branch.set_upstream(&remote.name, &active_branch.name()?)?;
|
||||||
|
};
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user