mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Revert "If saving to a git repository fails, don't create oddly named XML file"
This reverts commite70bbb637eLinus' solution in commit27c36ec4cf("Improved handling of git syntax names with no git repository") is much better and makes my hack unnecessary.
This commit is contained in:
		
							parent
							
								
									27c36ec4cf
								
							
						
					
					
						commit
						781b2e35d4
					
				
					 1 changed files with 1 additions and 6 deletions
				
			
		|  | @ -606,12 +606,7 @@ int save_dives_logic(const char *filename, const bool select_only) | |||
| 	git = is_git_repository(filename, &branch); | ||||
| 	if (git) | ||||
| 		return git_save_dives(git, branch, select_only); | ||||
| 	/* if the syntax is for a git save but saving we didn't find a
 | ||||
| 	 * repository, throw error */ | ||||
| 	if (strchr(filename, '[')) { | ||||
| 		report_error("Save failed, invalid git repository %s", filename); | ||||
| 		return -1; | ||||
| 	} | ||||
| 
 | ||||
| 	try_to_backup(filename); | ||||
| 
 | ||||
| 	save_dives_buffer(&buf, select_only); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue