Skip to content

git bug rewrites .git/config and loses comments #1022

@philpennock

Description

@philpennock

The file .git/config can be added to and removed from though automation, but does support comments.

Using git bug in a repo stomps on the file, rewriting it and losing comments, blank lines, etc.

Observed behavior

  1. Add a comment to a repo's .git/config
  2. Run git bug bridge pull
  3. Look at .git/config and see the comment has gone

Desired behavior:

  1. comments preserved, everything outside of the git-bug area preserved
  2. git bug doesn't edit the config at all unless it needs to, rather than on every operation

Affirmed behavior still present in current HEAD:

git-bug version: v0.8.0-dev-55e4046b4b

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions