<div dir="ltr"><div>Sir,</div><div><br></div><div>I have gone through the code concerning the issue raised. I also read about the working of git status command and the problem that I am able to figure out is that although the existing code is able to check whether the current path exists or not but since it is relying on git status to check whether the .git file is available or not, a problem is there. The git status checks the current directory for the .git file but in case the current directory doesn't have the .git file, it will look for it in the parent directory and if found there it will return True, which voids the purpose. </div><div>So, I think, if a second check is given to validate whether the current directory contains .git file or not will solve the issue.</div><div>So the code may be:</div><div><span style="white-space:pre"> </span></div><div><span style="white-space:pre"> </span>def valid(self):</div><div> <span style="white-space:pre"> </span>if path.exists(self.path):</div><div><span style="white-space:pre"> </span>if path.exists(path.join(self.path, ".git")):<span style="white-space:pre"> </span></div><div><span style="white-space:pre"> </span> <span style="white-space:pre"> </span>ec, output = self._run(['status'])</div><div> <span style="white-space:pre"> </span> <span style="white-space:pre"> </span>return ec == 0</div><div> <span style="white-space:pre"> </span>return False</div><div>I request you to please guide me whether I proceeded in a right way or not.</div><div><br></div><div><br></div><div>Thanks and Regards</div><div>Abhinav Jain</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 13, 2018 at 10:50 AM, Abhinav Jain <span dir="ltr"><<a href="mailto:jainab.2009@gmail.com" target="_blank">jainab.2009@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Sir,<div><br></div><div>Thanks for the guidance. I will study the code available and will try to resolve the issue as soon as possible.</div><span class=""><div><br></div><div>Thanks and Regards</div><div>Abhinav Jain</div></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 13, 2018 at 4:47 AM, Chris Johns <span dir="ltr"><<a href="mailto:chrisj@rtems.org" target="_blank">chrisj@rtems.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 13/02/2018 06:05, Gedare Bloom wrote:<br>
> Abhinav,<br>
><br>
> Attempt to reproduce the reported problem, try out the patch and see<br>
> if it works. I see this was reported for 4.10. See if the problem also<br>
> affects 4.11, master, and if the fix works for them too.<br>
<br>
</span>I suspect it is common to all branches.<br>
<span><br>
><br>
> On Mon, Feb 12, 2018 at 11:55 AM, Abhinav Jain <<a href="mailto:jainab.2009@gmail.com" target="_blank">jainab.2009@gmail.com</a>> wrote:<br>
>> Sir,<br>
>><br>
>> I have gone through the projects available in the link provided by you and I<br>
>> am interested in an issue (RSB can sometimes change the wrong local git<br>
>> repository (includes a fix).) listed there.<br>
>> Link: <a href="https://devel.rtems.org/ticket/2522#no1" rel="noreferrer" target="_blank">https://devel.rtems.org/ticket<wbr>/2522#no1</a><br>
>> I request you to please provide some more information regarding this so that<br>
>> I can proceed with the coding part.<br>
>><br>
<br>
</span>As Gedare suggests take a look at the master and 4.11 branches and if present<br>
work I suggest you work on the master branch and then we can take git.py and<br>
back port to 4.11 and 4.10 by simply coping git.py to those branches.<br>
<span class="m_-3199811036894968263HOEnZb"><font color="#888888"><br>
Chris<br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>