This repository was archived by the owner on Nov 17, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,6 @@ void ClientCommands::sync()
112112
113113void ClientCommands::info ( bool isJsonFormat )
114114{
115- Q_ASSERT ( isAuthorized () );
116115 LocalProject lp = mLocalProjectsManager .projectFromDirectory ( QDir::currentPath () );
117116 if ( !lp.isValid () )
118117 throw QString ( " no mergin project in the current directory" );
Original file line number Diff line number Diff line change @@ -172,26 +172,24 @@ int main( int argc, char *argv[] )
172172 Args args = parseArgs ();
173173 ClientCommands cmd ( args.dataDir , args.timeout );
174174
175- cmd.login ( args.url ,
176- args.user ,
177- args.pass
178- );
179-
180-
181175 if ( args.command == " create" )
182176 {
177+ cmd.login ( args.url , args.user , args.pass );
183178 cmd.create ( args.projectNamespace , args.projectName );
184179 }
185180 else if ( args.command == " remove" )
186181 {
182+ cmd.login ( args.url , args.user , args.pass );
187183 cmd.remove ( args.projectNamespace , args.projectName );
188184 }
189185 else if ( args.command == " download" )
190186 {
187+ cmd.login ( args.url , args.user , args.pass );
191188 cmd.download ( args.projectNamespace , args.projectName );
192189 }
193190 else if ( args.command == " sync" )
194191 {
192+ cmd.login ( args.url , args.user , args.pass );
195193 cmd.sync ();
196194 }
197195 else if ( args.command == " info" )
You can’t perform that action at this time.
0 commit comments