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.

publishing an unborn repository disabled for no apparent reason

See original GitHub issue

If I create a new repo with an unborn branch, and with no commits, then the Publish button is not clickable as intended.

However, the user can go to Repository settings and click the Publish button, resulting in a Not a valid object name: 'master' error and the nav Publish button still greyed out.

Reproduce:

  • create new repo with no commits
  • go to Repo settings, click publish
  • error surfaces, but repo still published
  • Publish button in nav area still unclickable
screen shot 2017-09-19 at 12 14 17 screen shot 2017-09-19 at 12 22 12

related to #2086

tested in 1.0.0-beta3, mac

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
shiftkeycommented, Oct 5, 2017

@tierninho nice spot - yeah, I think we need this sort of granularity for this button state:

  • unpublished repository, unborn HEAD - enabled (can publish repository)
  • unpublished repository, valid branch - enabled (can publish repository and branch)
  • published repository, unborn HEAD - disabled (no branch to push)
  • published repository, branch without tracking - enabled (can publish branch)
  • published repository, network action - disabled (don’t interfere with existing action)
0reactions
tierninhocommented, Oct 4, 2017

Something seems off. Should we disable the publish button in this instance?

tested in 1.0.4-beta0, mac

Reproduce:

  • make a new repo, undo and delete all commits
  • click the publish repo button
screen_shot_2017-10-04_at_13 58 32_720
Read more comments on GitHub >

github_iconTop Results From Across the Web

git - Github website publish cannot publish unborn HEAD
cannot publish unborn HEAD. This issue occurs because your github repository is empty i.e without a single file.Below is the snapshot.
Read more >
How to Disable a repository in Azure DevOps? - Daily .NET Tips
Under the Project Settings, select Repositories, and navigate to Settings for the Repository. Under the Settings, you will find the option “Disable Repository” ......
Read more >
Public Law 106-554 - GovInfo
In publishing this Act in slip form and in the United States Statutes at Large ... disabilities and non-disabled children) and teachers of...
Read more >
git-config Documentation - Git
If the global or the system-wide configuration files are missing or unreadable they will be ignored. If the repository configuration file is missing...
Read more >
afman41-210.pdf - Air Force
This publication implements Air Force Policy Directive (AFPD) 41-2, ... Non-Military Medical Facilities also known as Absent Sick Status.
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