Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Why need to click discard twice in SourceTree?

Heikki Leivo May 21, 2018

This may be a stoopid question, but I have not been able to figure this out - when I want to discard changes to a file in SourceTree, why do I need to click "discard" twice for the selected file? On first click the content of the file will be discarded, but the file stays in the "unstaged" list until I discard it second time. I find it somewhat annoying. 

3 answers

1 vote
minnsey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 21, 2018

Hi

If you are using the Windows version then I believe the is a bug we are currently working on. Could you upload screenshots to show the behaviour to confirm it is the same problem?

0 votes
Brody Holden (328)
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 19, 2018 edited

Hello,

This issue is present in 2.6.6.0

Thanks for your time.

0 votes
Heikki Leivo May 22, 2018

Hello Michael,

Please see the screenshots below, showing UI before and after discarding a file. As you see, the file stays in unstaged list, but the diff tells the file has no changes. The file has to be discarded twice to remove it from unstaged list.

Kind regards,

Heikki

 

image.png image.png

minnsey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 22, 2018

Hi
Thanks, can I check what version you are running?

Heikki Leivo May 22, 2018

Good question. I was pretty sure I was using latest version, but apparently I had 2.4.7.0. I updated to 2.5.5 and verified - UI behavior did not change, files need still to be discarded twice.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events