1. Daryl Foster
  2. PowerBuilder
  3. Thursday, 22 February 2018 07:32 AM UTC

Hi,

I've sort of got Git working but I've got a problem with one of my applications where it won't commit changes.  I can edit an object and Powerbuilder knows its modified but when I Commit it, it doesn't seem to update the repo.  Is there any advanced logging I can turn on to see what it is doing.  The log shows that it finds 1 modified file, but it doesn't actually get commited:

 ---------- Source Control
Git commit
Git client is finding files. Please wait...
Git client has finished finding files. 1 file(s) found.
Git client is committing files. Please wait...
Git commit success.
Git commit
 ---------- Done Source Control


I can check modifications from TortoiseGit and it finds the modified file and I can commit it from there, but for some reason Powerbuilder doesn't commit modifications.  It will commit new objects in this particular project though.

 

Also, is there a way to exclude .pbd files from Git tracking?  My project includes pbwsclient170.pbd and Powerbuilder has the three objects marked in that file as added and they come up each time I commit the whole project.  Ideally I'd like to exclude any pbds from tracking.

Gimmy Susan Accepted Answer Pending Moderation
  1. Thursday, 22 February 2018 07:52 AM UTC
  2. PowerBuilder
  3. # 1
Hello.

1-
(if I understand your problem)
After the commit you have to push.
The PUSH command commits the object from the local repository to the remote repository.
see: https://git-scm.com/docs/git-push

2-
Before pushing a git repository it is important to have the gitignore configured, ie specify which files should not be versioned in a git repository.
see: https://git-scm.com/docs/gitignore
Comment
  1. Daryl Foster
  2. Thursday, 22 February 2018 08:03 AM UTC


Thanks for the reply.  With regard to the commit/push.  The commit updates the local repo and then the push updates the remote repo from the local.  The problem I'm having is that Powerbuilder isn't updating the local repo, but I can do that from TortoiseGit.  The push from Powerbuilder seems to be working ok.



 



Thanks, I'll have another look at gitignore.  I had added the pbd to .gitignore and removed it from the local repo but Powerbuilder still seems to want to track it.

  1. Helpful
  1. Michael W.
  2. Thursday, 22 February 2018 11:35 AM UTC
Hi,



I encounter the exact same problem where committing a file from PowerBuilder to the local Git repository doesn't work. 



Committing the file using the command line works. 

  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.