CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Git or other systems for source code and documentation management

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 6, 2009, 16:38
Default Git or other systems for source code and documentation management
  #1
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
  • This thread is a stub for discussions about the merits of particular source code management systems (scm) such as git, svn, hg, bazaar.
  • It is also a stub for discussions about how to organized cooperative efforts in sharing source code and/or documentation.
olesen is offline   Reply With Quote

Old   November 12, 2009, 07:31
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Since OpenCFD is using git to provide bugfixes for OpenFOAM, there is no obvious reason to be using another scm with OpenFOAM projects. Especially since the capabilities of git have been stress-tested in various large projects, including the Linux kernel. This also means there is no particular fear that git will disappear in the near future.

Git may certainly seem confusing and cryptic to a new user, but with some minor learning effort it proves to be a trusty and very useful tool. In the hopes of being able to help, I have reworked a short presentation about starting with OpenFOAM and git and posted it in a blog format: http://olesenm.github.com/2009/11/12...nFOAM-and-git/
olesen is offline   Reply With Quote

Old   November 12, 2009, 08:40
Default
  #3
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23
l_r_mcglashan will become famous soon enough
That's a good blog. I set up a bare git repository (private one on the server at work) for custom solvers/libraries/utilities. We all cloned it and work on our own branches, pushing to the bare repository when we're happy that our solvers work well. So we use Git pretty much like we used SVN I suppose.

I also find the hooks quite useful, and I use post-receive on the bare repository, which sends an e-mail out when the repository has been pushed to. I've come across a small problem with sendmail (the post-receive script calls it to send the email out). If there are multiple, comma separated email addresses in the To: section, the emails won't be sent. I'm working on why that happens.
__________________
Laurence R. McGlashan :: Website
l_r_mcglashan is offline   Reply With Quote

Old   November 12, 2009, 09:43
Default
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by l_r_mcglashan View Post
That's a good blog. I set up a bare git repository (private one on the server at work) for custom solvers/libraries/utilities. We all cloned it and work on our own branches, pushing to the bare repository when we're happy that our solvers work well. So we use Git pretty much like we used SVN I suppose.

I also find the hooks quite useful, and I use post-receive on the bare repository, which sends an e-mail out when the repository has been pushed to. I've come across a small problem with sendmail (the post-receive script calls it to send the email out). If there are multiple, comma separated email addresses in the To: section, the emails won't be sent. I'm working on why that happens.
Thanks for the feedback.

Regarding your problem with sending email. I took a quick look and also quickly ran into a similar issue.
Check that the mailing list is actually defined nicely:

$ git config hooks.mailinglist

Next try running the "/PATH/TO/post-receive-email refs/heads/master HEAD HEAD~1" from the command-line to see which errors it reports. This will help diagnose if the problems are with your config, with the hook, or with sendmail itself. Unfortunately, the "error:" message is also sent to stdout, which is probably why sendmail is so unhappy.

Using "git config --add hooks.mailinglist" adds a new entry each time, but this is not allowed. Take a look at your config file and see if you need to edit it to remove multiple 'mailinglist' entries. From what I can see, a text editor is the only option here.
olesen is offline   Reply With Quote

Old   November 12, 2009, 11:03
Default
  #5
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23
l_r_mcglashan will become famous soon enough
Yes, having multiple entries isn't allowed. git config --unset removes them, but it's easiest to do with a text editor, you're right. In the config I have:

mailinglist = address1@wherever,address2@somewhere

When the repository is pushed to, I get a "Mail delivery failed: returning message to sender" e-mail back to my user account mailbox with the following content:

<cut>SMTP error from remote mail server after MAIL FROM<cut>
<cut>malformed address:<cut>

The email addresses in the 'To:' section of the failed e-mail appear as they should, separated by commas.

Anyway, slightly off topic, but I'll post a resolution if I find one. The obvious is to create a mailing list/alias for each git repository.

Solution:

This has been resolved. We actually use Exim (sendmail softlinked to it). Exim had been updated twice since the original exim.conf file was written, and so that file was out of date.
__________________
Laurence R. McGlashan :: Website

Last edited by l_r_mcglashan; November 14, 2009 at 08:51. Reason: Solution found
l_r_mcglashan is offline   Reply With Quote

Reply

Tags
git, scm


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
The FOAM Documentation Project - SHUT-DOWN holger_marschall OpenFOAM 242 March 7, 2013 13:30
Design Integration with CFD? John C. Chien Main CFD Forum 19 May 17, 2001 16:56
What is the Better Way to Do CFD? John C. Chien Main CFD Forum 54 April 23, 2001 09:10


All times are GMT -4. The time now is 01:44.