Forum Discussion

dhundley's avatar
dhundley
Regular Contributor
2 days ago
Solved

Renaming a project suite under git control

does anyone have any experience with renaming a project suite that is under git version control? i have a project suite that essentially has three projects in it but i want to split them apart into three separate project suites. after cloning the project suite and doing the necessary editing to remove the other two extraneous projects from each of the three new ones I'm left with the problem that all three project suites have an identical name for the .pjs file. if i rename the .pjs file inside test complete it will have the git "?" icon. Can i simply right click the top level project suite when i have the project suite open in test complete and perform a source control -> add? or would it be better to rename the <suitename>.pjs file (and the <suitename>.pjs.tcLS and the <suitename>.tcCfgExtender files) in the windows folder? or is it maybe a combination of both these things?

Just trying to avoid any issues in git. i've cloned projects before but i've never cloned a project suite and just wondering if anyone out there has.  

  • Use only TestComplete to perform renaming, so that it updates the necessary project files and references. Don't use any other tools!

    Commit to your local repository, then Push to remote repository.

    Also the Git that is provided with TestComplete, will have limited functionality.

6 Replies

  • scot1967's avatar
    scot1967
    Icon for Champion Level 2 rankChampion Level 2

    It's in a hidden folder...

    It should be in this path > C:/Users/david.hundley/Documents/TestComplete 15 Projects/NuPoint_TDA/.git/

    Caution: Only delete index.lock if youโ€™re sure no Git process is using it. Otherwise, you could corrupt the repository state.

    To be safe you could log off/on or restart to ensure all the git processes are closed.  That may even resolve the issue.

    ... If you find my posts helpful drop me a like! ๐Ÿ‘ Be sure to mark or post the solution to help others out and/or to credit the one who helped you. ๐Ÿ˜Ž

  • rraghvani's avatar
    rraghvani
    Icon for Champion Level 3 rankChampion Level 3

    Use only TestComplete to perform renaming, so that it updates the necessary project files and references. Don't use any other tools!

    Commit to your local repository, then Push to remote repository.

    Also the Git that is provided with TestComplete, will have limited functionality.

    • dhundley's avatar
      dhundley
      Regular Contributor

      i used testcomplete to perform the renaming as you suggested but for the first of two cloned repos it would not allow me to do the commit/push from testcomplete. i was, however, able to commit/push from the git context menu on the windows folder. for the second of the two i was able to do everything from testcomplete. right after doing the rename in testcomplete both times, the projectsuite had the question mark icon next to it. i used the source control context menu to do the Add process which converted it to a plus sign. 

      The end result was that i now have the original and two successfully cloned and edited copies that have the correct and distinguishable names when i open them in testcomplete.

      thanks for your help

    • dhundley's avatar
      dhundley
      Regular Contributor

      I keep getting this error when i try to commit

      fatal: Unable to create 'C:/Users/david.hundley/Documents/TestComplete 15 Projects/NuPoint_TDA/.git/index.lock': File exists.

      yet if i do a search for *.lock in the TestComplete 15 Projects folder it says there are no items that match my search