commit

Github workflow and pull requests showing unwanted commits

隐身守侯 提交于 2019-12-11 09:15:47
问题 In our business we have the following setup (hugely simplified version), pretty standard: A master branch, which updates the live environment through a hook. A test branch, used for QA, UA, which updates a test environment in the same way. The repo is hosted on GitHub. The workflow is usually as follows: Pull from master Create a branch e.g. Ticket1 to work on the particular ticket Do the work, test locally Commit and push branch Ticket1 Merge Ticket1 into test through a pull request in

Setting commit author in SharpSvn .NET library throws SvnRepisitoryIOException exception

家住魔仙堡 提交于 2019-12-11 07:58:20
问题 If you have experience with using the SharpSvn .NET library, I could use your expertise in setting the commit author during an SVN commit. I've tried a few things, but they all throw an SvnRepisitoryIOException unless the user is saved in TortoiseSVN. However, I want to use different user credentials depending on the situation. If I've saved a user's default credentials, TortoiseSVN remembers them in Settings > Saved Data > Authenticated Data, and is able to commit a file using that

Updating and committing file by using gitlab api

空扰寡人 提交于 2019-12-11 07:00:01
问题 I want to update file content and commit it. To be able to achieve it, I looked the api of gitlab from the url; http://mygitlabadress/help/api/README.md It says Updating existing file is done as; http://mygitlabadress/help/api/repository_files.md#update-existing-file-in-repository I follow the instructions and write; http://mygitlabadress/api/v4/projects/:id/repository/files/file1%2Ffile2%2Ftest?ref=master&author_name=name%20surname&content=some%20other%20content&commit_message=update%20file

SVN commit error: “'.' is not a working copy”

僤鯓⒐⒋嵵緔 提交于 2019-12-11 05:35:24
问题 I can SVN-update and browse the repository just fine. The .svn directory exists in every folder across the checked out code tree. Only commit is broken for some reason. Any idea what could cause this? 回答1: Make sure your working copy is not in the drive root but at least one folder below the drive root. 回答2: Try Clean Up menu option. 回答3: Make sure you cd or right-click the correct folder. 来源: https://stackoverflow.com/questions/3197963/svn-commit-error-is-not-a-working-copy

Should I have to merge and commit every time I update my Mercurial branch on the production server?

情到浓时终转凉″ 提交于 2019-12-11 02:48:50
问题 I'm using Mercurial in a recent project. On the web server where I'm deploying the project I have a slightly different config file with production settings. The problem is when I pull and update , I often have to merge and commit as well. Is this the correct workflow? It seems strange that in order to be able to continue to update I have to be committing the changesets, I figured a merge would integrate them into my production branch and continue to do so each time i update. Is this a

Ignore file in Subversion removes old values from svn:ignore property

血红的双手。 提交于 2019-12-11 02:38:58
问题 I have a Subversion Working Copy G:\csmdepot\Builds with diffrent files in it, some are ignored some aren't (I ignored the files with Tortoise): \Build_1.wim ignored \Build_2.wim ignored \WimID.xml (not ignored) Now to automate everything I'd like to do it via the command line and I tried the following (I'm writing a batch file in a vbscript and run it): fso.MoveFile "G:\csmdepot\Builds\WimID.xml", "G:\WimID.xml" --- Batch file start G: cd G:\csmdepot\Builds\ svn commit WimID.xml -m "Commit

Bazaar: Automatic file modification on commit with the modification committed

倾然丶 夕夏残阳落幕 提交于 2019-12-11 02:38:29
问题 I would like bazaar to write revision number on commit to a file in the committed branch so that this modification is included in the commit. I looked at hooks but the pre_commit hook is only run after the changeset is created, thus the modification performed by it is not committed. I found a related question: Bazaar: Modify file content before commit via hook? , however, the proposed bzr-keywords solution does not work either as its write conversion is not applied on commit: ``bzr commit``

How to pre-hook the gitflow hotfix finish?

北城以北 提交于 2019-12-11 02:38:10
问题 I think I am using the "https://github.com/nvie/gitflow", if that is the one which comes within the Smartgit GUI program. Every time I to commit something, I update the 'build' number. Example: 2.6.0-77 to 2.6.0-78 This is already implemented to hook the pre-commit and increment the build number, but how to create a hook to hook the gitflow hotfix finish and to increment the hotfix version number? Example: 2.6.0-70 to 2.6.1-70 The code to increment the hotfix version is already done. We just

Django transactions requests fail but still partially commit

丶灬走出姿态 提交于 2019-12-11 02:37:52
问题 When I submit a form I have to save two objects to the database; however if there is a failure in between the first and second saves, I still see the first object in the database. Because I have enabled TransactionMiddleware in the main settings, I wanted (and was expecting) the failure of the request to roll back any database update that I had made as a result of this request. My code is as follows: def submit(request): form1 = Form1(request.POST) form2 = Form2(request.POST) obj1 = form1

Minor Git Issue - Changing Default Editor [duplicate]

不想你离开。 提交于 2019-12-11 02:18:51
问题 This question already has answers here : Closed 8 years ago . Possible Duplicates: How can I set up an editor to work with Git on Windows? Trouble on setting the git 'core.editor' I'm trying to change my default git text editor to TextMate, such that forgetting the -m tag on a commit will bring me into TextMate and not vi. I have [core] editor = mate -w in my ~/.gitconfig, but it still throws the following error at me: error: cannot run TextMate: No such file or directory error: There was a