versapay/hudson-github-autobranch — Issue #1: Problem with git in new branches
Author: morganchristiansson
Created: 2011-11-24 12:20:27+00:00
State: open

The regexp on this line overwrites all values everywhere in the document. https://github.com/versapay/hudson-github-autobranch/blob/75f45648a34dcb73baa8e14db465c6117e746d2b/lib/hudhub/job.rb#L103

This include the following for the git plugin:

```
origin
+refs/heads/*:refs/remotes/origin/*

git@github.com:FundingCircle/funding_circle_app.git

```

This breaks updating the branch so it's continually building the same revision. I think replacing the contents of specific elements by XPath based lookups with REXML might be a better solution?

Or have a token like %TEMPLATE% and just replace that wherever it occurs in the document marker tag and `self.data.gsub!(/%TEMPLATE%/, branch)