Skip to content

Be able to make an empty branch in git #8

@BryceStevenWilley

Description

@BryceStevenWilley

Docassemble can't make an empty branch without erroring. You have to change something in some file.

The relevant code: server.py:16623 (at the time) does an add / status / commit; should be able to do git diff before hand to see if the commit is empty; if it is and there's a new branch, just make the branch and push it. If the commit is empty and no new branch, don't show confusing error; just return 200 with a flask saying "empty commit".

TBH, if #7 can be finished, this isn't necessary. But until then, it's confusing and annoying.

Transferred from https://github.com/BryceStevenWilley/docassemble/issues/6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Developer ExperienceThings that help developers when authoring interviews

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions