Uploaded image for project: 'Sourcetree For Mac'
  1. Sourcetree For Mac
  2. SRCTREE-5844

Files Added With Intent To Stage Disappear From File Status Widget

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 2.7.6
    • Git
      • OS: macOS High Sierra 10.13.4
      • Client: SourceTree for Mac 2.7.6 (177)
      • JDK: 1.8.0_111
      • Git: Embedded Git 2.17.1
    • Severity 2 - Major

    Description

      Untracked files appear in the File status in the Unstaged files widget. When staging an untracked file (git add -N <filename>), the file disappears from both the Unstaged files and Staged files widgets.

      Steps to Reproduce

      1. Create a new repository and open it in the SourceTree client
      2. From the command line, change directory to the repo and create a new file with some content in it
      3. Confirm the file is showing in SourceTree by clicking on File status and pressing ⌘+R
      4. Add the file with an intent to stage later by running git add -N <filename>
      5. Refresh the SourceTree window by pressing ⌘+R

      Expected Results

      The file should be showing in the Staged files widget as a new file with no content. The file should also be showing in the Unstaged files as a modified file with all content counting as a diff from the staged version of the file with zero content.

      Actual Results

      The file does not show up in either widget.

      Attachments

        Activity

          People

            2566180e0bc8 Arati Mohanty
            30c0869c0ace Michael Foss
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: