question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Main/Master Branch Pickup

See original GitHub issue

When running a ClearML task on a GitHub repo with a main default branch vice a master default branch, the checkout will fail, unless the main branch or a commit or tag is specified.

clearml-task --project asdf --name asdf --repo https://github.com/asdf/asdf.git --script asdf/asdf.py --queue default

results in:

Repository cloning failed: Command '['git', 'checkout', 'origin/master', '--force']' returned non-zero exit status 1.

unless --branch main is added explicitly. Just thought it might be good to fix since main is the new master.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jkhenningcommented, Feb 7, 2022

Hi @samsipe,

We’ve just released ClearML Agent v1.2.0rc2 that should take care of this issue - feel free to try it out and let us know if it works 🙂

1reaction
samsipecommented, Jan 25, 2022

I think that’s helpful! And it’s nut just GitHub, it’s all of Git since Git 2.28.0 I think. So I would certainly update that eventually for anyone that won’t dig that deep into the docs.

I might update your example with --branch master and your note from above too for now too so it’s clear to folks that land there as well.

Also, since I have you, thanks for building ClearML. It has been very helpful for me so far in a project I am work on!

Feel free to close this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tree Branch Pickup - Maine Township
The Highway Department provides free tree branch pickup service for residents of unincorporated Maine Township only. We ask your cooperation in following ...
Read more >
Brush & Leaf Pickup - Township of Bedminster
Brush collection will begin on the Fourth Monday in April. Residents will be restricted to 1 (one) pile of brush per property –...
Read more >
Chapter 21 Git Version Control | Bioconductor Packages
If the repository is already cloned, the work flow is to make sure that you are on the 'master' branch, pull any changes,...
Read more >
Run pipeline from protected branch - Help
Hey there :wave: I am creating a pipeline for a public repo that I'd like to trigger pull requests from 3rd party forks....
Read more >
Why You Should Use the git-flow Toolset in Your Git ...
In the Git-Flow model, we are using two base branches to record the project's history. The main/master branch. ✓Purpose: A main/master branch stores...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found