-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
…ble-seems-useless
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
private-pushing | ||
basicPushTo: aRemote | ||
| gitRemote | | ||
|
||
gitRemote := (LGitRemote of: self repositoryHandle named: aRemote name) lookup. | ||
[ | ||
| pushProgress | | ||
pushProgress := IcePushTransferProgress new. | ||
"Push branch" | ||
self | ||
pushBranchToRemote: aRemote | ||
gitRemote: gitRemote | ||
progress: pushProgress. | ||
"Push tags" | ||
self | ||
pushTagsToRemote: aRemote | ||
gitRemote: gitRemote | ||
progress: pushProgress. | ||
|
||
"Verify we have an stream" | ||
self setUpstreamIfMissing: aRemote ] | ||
on: LGit_GIT_ENONFASTFORWARD | ||
do: [ :e | | ||
e resignalAs: (IceRemoteDesynchronized new | ||
remote: aRemote; | ||
yourself) ] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
private-pushing | ||
pushBranchToRemote: aRemote gitRemote: gitRemote progress: pushProgress | ||
|
||
gitRemote | ||
pushWithRefSpec: (LGitRefSpec new | ||
source: self fullname; | ||
destination: self fullname; | ||
yourself) | ||
pushOptions: (LGitPushOptions defaults | ||
callbacks: ((LGitRemoteCallbacks withProvider: (IceCredentialsProvider defaultForRemote: aRemote)) | ||
pushTransferProgress: pushProgress; | ||
yourself); | ||
yourself) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
private-pushing | ||
pushTag: tag toRemote: aRemote gitRemote: gitRemote progress: pushProgress | ||
|
||
gitRemote | ||
pushWithRefSpec: (LGitRefSpec new | ||
source: 'refs/tags/' , tag name; | ||
destination: 'refs/tags/' , tag name; | ||
yourself) | ||
pushOptions: (LGitPushOptions defaults | ||
callbacks: ((LGitRemoteCallbacks withProvider: (IceCredentialsProvider defaultForRemote: aRemote)) | ||
pushTransferProgress: pushProgress; | ||
yourself); | ||
yourself) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
private-pushing | ||
pushTagsToRemote: aRemote gitRemote: gitRemote progress: pushProgress | ||
|
||
self tags do: [ :tag | | ||
self | ||
pushTag: tag | ||
toRemote: aRemote | ||
gitRemote: gitRemote | ||
progress: pushProgress ] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,5 @@ | ||
API-remotes | ||
pushTo: aRemote | ||
|
||
repository | ||
handleLibgitError: [ | gitRemote | | ||
gitRemote := (LGitRemote of: self repositoryHandle named: aRemote name) lookup. | ||
[ | ||
| pushProgress | | ||
pushProgress := IcePushTransferProgress new. | ||
gitRemote | ||
pushWithRefSpec: | ||
(LGitRefSpec new | ||
source: self fullname; | ||
destination: self fullname; | ||
yourself) | ||
pushOptions: | ||
(LGitPushOptions defaults | ||
callbacks: ((LGitRemoteCallbacks withProvider: (IceCredentialsProvider defaultForRemote: aRemote)) | ||
pushTransferProgress: pushProgress; | ||
yourself ); | ||
yourself). | ||
|
||
"Push tags!" | ||
self tags | ||
do: [ :tag | | ||
| tagProgress | | ||
gitRemote | ||
pushWithRefSpec: | ||
(LGitRefSpec new | ||
source: 'refs/tags/' , tag name; | ||
destination: 'refs/tags/' , tag name; | ||
yourself) | ||
pushOptions: | ||
(LGitPushOptions defaults | ||
callbacks: ((LGitRemoteCallbacks withProvider: (IceCredentialsProvider defaultForRemote: aRemote)) | ||
pushTransferProgress: pushProgress; | ||
yourself); | ||
yourself) ] ] | ||
on: LGit_GIT_ENONFASTFORWARD | ||
do: [ :e | | ||
e | ||
resignalAs: | ||
(IceRemoteDesynchronized new | ||
remote: aRemote; | ||
yourself) ] ] | ||
repository handleLibgitError: [ | ||
self basicPushTo: aRemote ] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
private-pushing | ||
setUpstreamIfMissing: aRemote | ||
|
||
self hasUpstream ifTrue: [ ^ self ]. | ||
self setUpstream: (aRemote remoteBranchNamed: self gitRef) |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.