• Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Low Low
    • None
    • 2.4.1
    • General
    • None
    • Severity 3 - Minor

      If the repository is located in a same-named parent folder, not the repository will be opened but the parent directory.

      In this example, my repository my-repos is located in ~/repos/private/my-repo/my-repo. Clicking on the button Terminal will lead to the following terminal output:

      Last login: Wed Oct 25 09:17:11 on ttys042
      cd '/Users/ich/repos/private//''my-repo'
       ich@asiago-lbs:~> cd '/Users/ich/repos/private//''my-repo'
       ich@asiago-lbs:~/repos/private/my-repo>
      

      I'm using the latest version 2.4.5, which I can't select here under Affects Version/s.

            [SRCTREE-8081] Open in terminal doesn't open in the right directory

            Kindly follow https://jira.atlassian.com/browse/SRCTREE-8011 for more updates on it.

            Arati Mohanty added a comment - Kindly follow https://jira.atlassian.com/browse/SRCTREE-8011 for more updates on it.

            a7c11d459e59 Thank you for reaching out to us. We are able to reproduce the issue and will try to provide fix asap. 

            Arati Mohanty added a comment - a7c11d459e59 Thank you for reaching out to us. We are able to reproduce the issue and will try to provide fix asap. 

            Hi, I have the same problem Sourcetree v4.2.7 (263) using iTerm2. The issue occur when using directory path that have special character in my case hyphen -

            Thanks

            Jean-François

            Jean-François Brodeur added a comment - Hi, I have the same problem Sourcetree v4.2.7 (263) using iTerm2. The issue occur when using directory path that have special character in my case hyphen - Thanks Jean-François

            4bdb8a5ef91e, thanks for your answers.

            We will analyse this issue according to priorities and we will get back to you once we will have some updates.

            Raman Sidarakin (Inactive) added a comment - 4bdb8a5ef91e , thanks for your answers. We will analyse this issue according to priorities and we will get back to you once we will have some updates.

            chkpnt added a comment - - edited

            1) Ups... lol, yes I meant 4.2.5. No wonder I couldn't find it in the drop down.
            2) I'm using iTerm2 (v3.4.21) with zsh and oh-my-zsh installed. I've just switched to "Terminal" to see what happens: The issue doesn't occur. So it seems it has something to do with iTerm2.
            3) I have not noticed a problem in other cases so far. Even if the path contains a space, it's working fine (but I do not understand the double apostrophe before the repository folder):

            EDIT: I'm not allowed to attach a screenshot, but iTerm2 is started with cd '/Users/ich/repos/private/my repo/''my-repo'.

            chkpnt added a comment - - edited 1) Ups... lol, yes I meant 4.2.5. No wonder I couldn't find it in the drop down. 2) I'm using iTerm2 (v3.4.21) with zsh and oh-my-zsh installed. I've just switched to "Terminal" to see what happens: The issue doesn't occur. So it seems it has something to do with iTerm2. 3) I have not noticed a problem in other cases so far. Even if the path contains a space, it's working fine (but I do not understand the double apostrophe before the repository folder): EDIT: I'm not allowed to attach a screenshot, but iTerm2 is started with cd '/Users/ich/repos/private/my repo/''my-repo' .

            Hi 4bdb8a5ef91e 

            Thanks for reporting this issue. I have few questions related to this issue and your answers will help us to get more context.

            1. The latest Sourcetree version is 4.2.5, which is available on official Sourcetree website. Does it kind of typo? Because you've mentioned 2.4.5.
            2. Could you please tell me which terminal application is configured inside Sourcetree? To get this information you need to launch Sourcetree, go to "Settings..." -> Find "Terminal app:" dropdown. Please, tell me which application is selected.
            3. Does clicking on "Terminal" button works in other cases? I mean when repository located in parent folder with different name.

            Thanks

             

            Raman Sidarakin (Inactive) added a comment - Hi 4bdb8a5ef91e   Thanks for reporting this issue. I have few questions related to this issue and your answers will help us to get more context. The latest Sourcetree version is 4.2.5, which is available on official Sourcetree website. Does it kind of typo? Because you've mentioned 2.4.5. Could you please tell me which terminal application is configured inside Sourcetree? To get this information you need to launch Sourcetree, go to "Settings..." -> Find "Terminal app:" dropdown. Please, tell me which application is selected. Does clicking on "Terminal" button works in other cases? I mean when repository located in parent folder with different name. Thanks  

              2566180e0bc8 Arati Mohanty
              4bdb8a5ef91e chkpnt
              Affected customers:
              0 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: