Skip to content

Commit 1914c94

Browse files
committed
Updated push code
1 parent 5812b38 commit 1914c94

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

examples/push/application.e

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -112,31 +112,6 @@ feature -- Intiialize Repository
112112
end
113113

114114

115-
116-
--bool push(git_repository *repository)
117-
-- {
118-
-- // get the remote.
119-
-- git_remote* remote = NULL;
120-
-- git_remote_lookup( &remote, repository, "origin" );
121-
122-
-- // connect to remote
123-
-- git_remote_connect( remote, GIT_DIRECTION_PUSH )
124-
125-
-- // add a push refspec
126-
-- git_remote_add_push( remote, "refs/heads/master:refs/heads/master" );
127-
128-
-- // configure options
129-
-- git_push_options options;
130-
-- git_push_init_options( &options, GIT_PUSH_OPTIONS_VERSION );
131-
132-
-- // do the push
133-
-- git_remote_upload( remote, NULL, &options );
134-
135-
-- git_remote_free( remote );
136-
-- return true;
137-
-- }
138-
139-
140115
feature {NONE} -- Process Arguments
141116

142117

0 commit comments

Comments
 (0)