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

git unable to get current branch #1516

Open
gitwittidbit opened this issue Oct 19, 2024 · 0 comments
Open

git unable to get current branch #1516

gitwittidbit opened this issue Oct 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@gitwittidbit
Copy link

Describe the bug
Trying to pull files from gitlab repo. Crawlab tries to connect, slows massively down. In the console I get this:

/go/pkg/mod/github.com/crawlab-team/[email protected]/trace.go:13 github.com/crawlab-team/go-trace.TraceError() /go/pkg/mod/github.com/crawlab-team/[email protected]/git.go:505 github.com/crawlab-team/crawlab-vcs.(*GitClient).GetCurrentBranchRef() /go/pkg/mod/github.com/crawlab-team/[email protected]/git.go:983 github.com/crawlab-team/crawlab-vcs.(*GitClient).isRemoteChanged() 2024/10/19 15:04:00 info [SpiderAdminService] finished sync git /go/pkg/mod/github.com/crawlab-team/[email protected]/git.go:687 github.com/crawlab-team/crawlab-vcs.(*GitClient).IsRemoteChanged() /go/pkg/mod/github.com/crawlab-team/[email protected]/spider/admin/service.go:296 github.com/crawlab-team/crawlab-core/spider/admin.(*Service).syncGitOne() /go/pkg/mod/github.com/crawlab-team/[email protected]/spider/admin/service.go:266 github.com/crawlab-team/crawlab-core/spider/admin.(*Service).syncGit.func2() /usr/local/go/src/runtime/asm_amd64.s:1571 runtime.goexit() unable to get current branch /go/pkg/mod/github.com/crawlab-team/[email protected]/trace.go:13 github.com/crawlab-team/go-trace.TraceError() /go/pkg/mod/github.com/crawlab-team/[email protected]/git.go:505 github.com/crawlab-team/crawlab-vcs.(*GitClient).GetCurrentBranchRef() /go/pkg/mod/github.com/crawlab-team/[email protected]/git.go:983 github.com/crawlab-team/crawlab-vcs.(*GitClient).isRemoteChanged() /go/pkg/mod/github.com/crawlab-team/[email protected]/git.go:687 github.com/crawlab-team/crawlab-vcs.(*GitClient).IsRemoteChanged() /go/pkg/mod/github.com/crawlab-team/[email protected]/spider/admin/service.go:296 github.com/crawlab-team/crawlab-core/spider/admin.(*Service).syncGitOne() /go/pkg/mod/github.com/crawlab-team/[email protected]/spider/admin/service.go:266 github.com/crawlab-team/crawlab-core/spider/admin.(*Service).syncGit.func2() /usr/local/go/src/runtime/asm_amd64.s:1571 runtime.goexit()

Additional info: I am a noob with respect to git (and crawlab). I followed the basic tutorial to create a spider and then tried to upload it to a git repo. I got an error message that I can't quite recall but it said something along the lines that the repo already had content (no idea where that would have come from). Anyways, I had to merge my spide into the repo and got another error that merging with independent histories was not allowed. So I overrode that and then the merge worked. So maybe that has something to do with the issue. On the other hand, gitlab shows there is just one branch and it is called "main". So it shouldn't be too difficult to find this one branch...

To Reproduce
Steps to reproduce the behavior:

  1. Set up git repo
  2. provide credentials
  3. pull
  4. See error

Expected behavior
Files get gownloaded from git repo

Screenshots
If applicable, add screenshots to help explain your problem.

@gitwittidbit gitwittidbit added the bug Something isn't working label Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
@gitwittidbit and others