Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Leibner
dune-common
Commits
fcb56ebe
Commit
fcb56ebe
authored
13 years ago
by
Sven Marnach
Browse files
Options
Downloads
Patches
Plain Diff
Adding git support to dunecontorl (FS #981)
[[Imported from SVN: r6536]]
parent
ad4381fb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/dunecontrol
+18
-1
18 additions, 1 deletion
bin/dunecontrol
with
18 additions
and
1 deletion
bin/dunecontrol
+
18
−
1
View file @
fcb56ebe
...
...
@@ -314,9 +314,26 @@ run_default_update () {
svn update
elif
test
-d
CVS
;
then
cvs update
-dP
elif
test
-d
.git
;
then
if
test
-d
".git/svn"
&&
test
-n
"
`
git svn find-rev HEAD
`
"
;
then
# If the current HEAD points to a SVN commit, update via git-svn
git svn rebase
else
# Update all remotes (if any)
git remote update
# merge all changes fast-forward style if possible
if
!
git merge
--ff-only
FETCH_HEAD 2> /dev/null
;
then
echo
"
$module
seems to be using git, and could not be"
echo
"updated automatically. Please update it manually."
echo
"(Usually, this is done via 'git svn rebase' for modules using"
echo
"subversion or 'git merge' for modules which use git natively."
echo
"Conflicts can be resolved using 'git mergetool'.)"
fi
fi
else
echo
"WARNING:
$module
is not under a known version control system."
echo
" We support svn and cvs."
echo
" We support svn
, git
and cvs."
fi
if
test
"
$DUNELINK
"
!=
0
&&
!
test
-d
dune
;
then
echo
"WARNING:
$module
is using the deprecated dune symlink"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment