Uploaded image for project: 'Skara'
  1. Skara
  2. SKARA-2448

Push Webrev to remote repo fails due to git error message

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • bots
    • None

      In a PR, the author pushed “.DS_Store” file unintentionally, then he removed ".DS_Store" and edited ".gitignore" file to prevent this happen again.

      In this case, when generating webrev, skara would add ".DS_Store" and ".gitignore" both to the working directory and try to push it to the remote repository. This triggers the git error like this

      The following paths are ignored by one of your .gitignore files:
      .DS_Store
      hint: Use -f if you really want to add them.
      hint: Turn this message off by running
      hint: "git config advice.addIgnoredFile false"

      And in that case, the bot will keep pushing and flooding the commit history of the remote repo

            Unassigned Unassigned
            zsong Zhao Song
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: