-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for file creation from git repositories. #1419
Comments
Yes, it is possible to implement support by following The main issue is how to write down the location of a Git clone + a revision + a path as a source. |
See also metomi/fcm#48. |
@benfitzpatrick you expressed an interest in this issue this morning. |
I did! My new team is allergic to Subversion, having had experience of Git. Our main scripts are in internal Git repositories. |
I hope this allergy is contagious... |
Yes... |
Easy to do, however, we will probably want to implement multiple methods and let the user choose which to use:
[1] Allowed if |
@oliver-sanders, re selected files, might an additional method here be the At least for public repos - looks like tokens on private repo links have an expiry date (default 7 days, extendable to only-if-unused-in-1-year...); not sure whether rules for private-repo-under-organisation tokens differ. E.g. I now use this public-raw-link based hack ~often for getting a handy ".svnignore" file for Python-based svn repos: # Get the Python-based .gitignore from raw GH url
wget https://raw.githubusercontent.com/github/gitignore/master/Python.gitignore --output-document=.svnignore --quiet
# Remove trailing slashes on patterns for dirs, which svn can't handle
sed --expression="s|/$||" --in-place .svnignore
# Generate a usage message
usage=$(cat<<"EOF"
# Adapted .gitignore for svn (no trailing \ for dirs)
# Source .gitignore: https://raw.githubusercontent.com/github/gitignore/master/Python.gitignore
# Usage to mimic .gitignore: svn propset svn:global-ignores -F .svnignore .
EOF
)
# Prepend usage message onto .svnignore
printf "%s\n\n%s\n" "$usage" "$(cat .svnignore)" > .svnignore
# Apply it!
svn propset svn:global-ignores -F .svnignore .
# Commit this reference ignore file; any updates will need reapplying
svn add .svnignore |
At NIWA we still use an in-house deployment system (now in special deployment tasks) to install suite components at the start of a suite run. The main reason for this is that our operational system runs a lot of code stored in various small git repositories (none of these are "UM-related", and some even pre-date our use of FCM - they were initially darcs repositories). This works well enough, but our suites would be a bit cleaner if we could just install these files via rose app configs. Potentially I could have a crack at this, following
lib/python/rose/loc_handlers/svn.py
? In which case, any pointers or issues to be aware of?The text was updated successfully, but these errors were encountered: