@commit_with_new_name_id=new_commit_edit_new_file(repository_rugged,"encoding/CHANGELOG","Edit encoding/CHANGELOG","I'm a new changelog with different text").oid
end
end
afterdo
afterdo
...
@@ -1964,7 +2008,7 @@ describe Gitlab::Git::Repository, :seed_helper do
...
@@ -1964,7 +2008,7 @@ describe Gitlab::Git::Repository, :seed_helper do
end
end
# Build the options hash that's passed to Rugged::Commit#create
# Build the options hash that's passed to Rugged::Commit#create
defcommit_options(repo,index,message)
defcommit_options(repo,index,target,ref,message)
options={}
options={}
options[:tree]=index.write_tree(repo)
options[:tree]=index.write_tree(repo)
options[:author]={
options[:author]={
...
@@ -1978,8 +2022,8 @@ describe Gitlab::Git::Repository, :seed_helper do
...
@@ -1978,8 +2022,8 @@ describe Gitlab::Git::Repository, :seed_helper do