Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using --pull doesn't do what one would expect - if the repo exists locally, it doesn't pull the branches/tags that are needed #616

Open
zramsay opened this issue Oct 29, 2023 · 0 comments

Comments

@zramsay
Copy link
Collaborator

zramsay commented Oct 29, 2023

For each repo whereby the stack has been updated, I have to go into it and git fetch -a origin then continue
e.g.:

# laconic-so --stack fixturenet-payments setup-repositories --pull
branches: None
Dev Root is: /root/cerc
Checking: /root/cerc/go-ethereum: already exists active branch: v1.11.6-statediff-v5
0.00B [00:00, ?B/s]
Checking: /root/cerc/lighthouse: already exists active branch: stable
0.00B [00:00, ?B/s]
Checking: /root/cerc/ipld-eth-db: already exists active branch: v5
100%|####################################################################################################| 4.00/4.00 [00:00<00:00, 8.42B/s]
Checking: /root/cerc/ipld-eth-server: already exists active branch: v5
100%|####################################################################################################| 31.0/31.0 [00:00<00:00, 52.5B/s]
switching to branch payments in repo cerc-io/ipld-eth-server
Checking: /root/cerc/ts-nitro: already exists active tag: v0.1.1-go-nitro
skipping pull because this repo checked out a tag
switching to branch v0.1.15 in repo cerc-io/ts-nitro

******* git command returned error exit status:
Cmd('git') failed due to: exit code(1)
  cmdline: git checkout v0.1.15
  stderr: 'error: pathspec 'v0.1.15' did not match any file(s) known to git'
root@pmts-demo:~# cd ~/cerc/ts-nitro/
root@pmts-demo:~/cerc/ts-nitro# git status
HEAD detached at v0.1.13
nothing to commit, working tree clean
root@pmts-demo:~/cerc/ts-nitro# git checkout v0.1.15
error: pathspec 'v0.1.15' did not match any file(s) known to git
root@pmts-demo:~/cerc/ts-nitro# git fetch -a origin
remote: Enumerating objects: 140, done.
remote: Counting objects: 100% (140/140), done.
remote: Compressing objects: 100% (79/79), done.
remote: Total 140 (delta 55), reused 118 (delta 47), pack-reused 0
Receiving objects: 100% (140/140), 337.98 KiB | 4.33 MiB/s, done.
Resolving deltas: 100% (55/55), completed with 23 local objects.
From https://github.com/cerc-io/ts-nitro
 * [new branch]      dependabot/npm_and_yarn/babel/traverse-7.23.2 -> origin/dependabot/npm_and_yarn/babel/traverse-7.23.2
 * [new branch]      dependabot/npm_and_yarn/undici-5.26.3         -> origin/dependabot/npm_and_yarn/undici-5.26.3
   3a42d1d..73f1ebc  main                                          -> origin/main
 * [new branch]      release-v0.1.14                               -> origin/release-v0.1.14
 * [new branch]      release-v0.1.15                               -> origin/release-v0.1.15
 * [new tag]         v0.1.14                                       -> v0.1.14
 * [new tag]         v0.1.15                                       -> v0.1.15
 * [new tag]         v0.1.2-go-nitro                               -> v0.1.2-go-nitro
@zramsay zramsay changed the title using --pull doesn't do what one would expect - if the repo exists, it doesn't pull the branches/tags that exist using --pull doesn't do what one would expect - if the repo exists locally, it doesn't pull the branches/tags that are needed Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant